File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -522,10 +522,10 @@ private function unwrap(string &$string): array
522
522
$ this ->errors [] = 'This file contains some segments without terminators ' ;
523
523
}
524
524
525
- $ terminatorRegex = '/(([^ ' .$ this ->symbRel .'] ' .$ this ->symbRel .' {2})+|[^ ' . $ this ->symbRel .'] ) ' .$ this ->symbEnd .'|[\r\n]+/ ' ;
525
+ $ terminatorRegex = '/((?<! ' .$ this ->symbRel .')(?: ' .$ this ->symbRel .$ this ->symbRel .')* ) ' .$ this ->symbEnd .'|[\r\n]+/ ' ;
526
526
527
527
if ($ this ->strict ) {
528
- $ terminatorRegex = '/(([^ ' .$ this ->symbRel .'] ' .$ this ->symbRel .' {2})+|[^ ' . $ this ->symbRel .'] ) ' .$ this ->symbEnd .'/ ' ;
528
+ $ terminatorRegex = '/((?<! ' .$ this ->symbRel .')(?: ' .$ this ->symbRel .$ this ->symbRel .')* ) ' .$ this ->symbEnd .'/ ' ;
529
529
}
530
530
531
531
$ string = (string ) \preg_replace (
You can’t perform that action at this time.
0 commit comments