mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5191f8908e
commit
a1bff2168e
@ -758,11 +758,11 @@ var features2lnk =
|
|||||||
module.features2lnk =
|
module.features2lnk =
|
||||||
function(features, text){
|
function(features, text){
|
||||||
features = new RegExp(
|
features = new RegExp(
|
||||||
'( )('
|
'(\\s)('
|
||||||
+(features
|
+(features
|
||||||
.sort(function(a, b){ return b.length - a.length })
|
.sort(function(a, b){ return b.length - a.length })
|
||||||
.join('|'))
|
.join('|'))
|
||||||
+')([, ]?)',
|
+')([,\\s]?)',
|
||||||
'g')
|
'g')
|
||||||
return text
|
return text
|
||||||
.replace(features, function(match, a, b, c){
|
.replace(features, function(match, a, b, c){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user