File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ const PluggerPlugins01 = (() => {
385385 cmd && typeof cmd === 'string' && cmd . length
386386 ) {
387387 markbase = `\\s+${ escapeRegExp ( mark ) . replace ( / \s / g, '\\s' ) } ` ;
388- markrx = new RegExp ( `${ markbase } (.+?)(?:${ split . map ( s => escapeRegExp ( s ) ) . join ( '|' ) } |${ markbase } |$)` , 'g' ) ;
388+ markrx = new RegExp ( `${ markbase } (.+?)(?:${ split . map ( s => escapeRegExp ( s ) ) . join ( '|' ) } |(?= ${ markbase } ) |$)` , 'g' ) ;
389389 openrx = new RegExp ( `^${ markbase } ` ) ;
390390 splitrx = new RegExp ( `^($|${ split . map ( s => escapeRegExp ( s ) ) . join ( '|' ) } )` ) ;
391391 return true ;
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ const PluggerPlugins01 = (() => {
385385 cmd && typeof cmd === 'string' && cmd . length
386386 ) {
387387 markbase = `\\s+${ escapeRegExp ( mark ) . replace ( / \s / g, '\\s' ) } ` ;
388- markrx = new RegExp ( `${ markbase } (.+?)(?:${ split . map ( s => escapeRegExp ( s ) ) . join ( '|' ) } |${ markbase } |$)` , 'g' ) ;
388+ markrx = new RegExp ( `${ markbase } (.+?)(?:${ split . map ( s => escapeRegExp ( s ) ) . join ( '|' ) } |(?= ${ markbase } ) |$)` , 'g' ) ;
389389 openrx = new RegExp ( `^${ markbase } ` ) ;
390390 splitrx = new RegExp ( `^($|${ split . map ( s => escapeRegExp ( s ) ) . join ( '|' ) } )` ) ;
391391 return true ;
You can’t perform that action at this time.
0 commit comments