正则修复

This commit is contained in:
PASSER-BY 2021-11-10 23:31:57 +08:00
parent e221fe387d
commit e421d8682b
3 changed files with 3 additions and 3 deletions

View File

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

File diff suppressed because one or more lines are too long

View File

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