Commit bd94050
preg_replace() requires quoting, specially for PHP 7.3 (#91)
Without this, a number of expressions fail (returning NULL),
leading to both non matches and warning/error:
Warning: preg_replace(): Compilation failed: number too big in {} quantifier at offset 6
This is specially noticeable under PHP 7.3, where the new PCRE2 engine
is more picky and has more features, but also may help some cases with
previous PHP versions, depending of the string being searched/replaced.1 parent 7fd1dbb commit bd94050
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
0 commit comments