正则修复

This commit is contained in:
PASSER-BY 2021-11-10 23:41:22 +08:00
parent e421d8682b
commit cd06399c7a
3 changed files with 5 additions and 5 deletions

View File

@ -166,11 +166,11 @@
str:''
},
{//并列关系处理1
exp:/(.+)?\[([^\|]+)\|(.+\|.+)?\](.+)?/g,
exp:/(.+)?\[([^\|]+?)\|(.+?\|.+?)?\](.+)?/g,
str:'$1$2$4#$1[$3]$4'
},
{//并列关系处理2
exp:/(.+)?\[([^\[\]\|]+)\|([^\[\]\|]+)?\](.+)?/g,
exp:/(.+)?\[([^\[\]\|]+?)\|([^\[\]\|]+?)?\](.+)?/g,
str:'$1$2$4#$1$3$4'
}
];

File diff suppressed because one or more lines are too long

View File

@ -166,11 +166,11 @@
str:''
},
{//并列关系处理1
exp:/(.+)?\[([^\|]+)\|(.+\|.+)?\](.+)?/g,
exp:/(.+)?\[([^\|]+?)\|(.+?\|.+?)?\](.+)?/g,
str:'$1$2$4#$1[$3]$4'
},
{//并列关系处理2
exp:/(.+)?\[([^\[\]\|]+)\|([^\[\]\|]+)?\](.+)?/g,
exp:/(.+)?\[([^\[\]\|]+?)\|([^\[\]\|]+?)?\](.+)?/g,
str:'$1$2$4#$1$3$4'
}
];