Merge branch '1.x' into 2.x

* 1.x:
  Fix regression
This commit is contained in:
Fabien Potencier
2020-02-21 09:29:15 +01:00
+2 -1
View File
@@ -473,8 +473,9 @@ class Lexer
}
// an operator that begins with a character must have a space before
// or a parenthesis
if (ctype_alpha($operator[0])) {
$r = '(?<=\s)'.$r;
$r = '(?<=[\s(])'.$r;
}
// an operator with a space can be any amount of whitespaces