Commit 3c50e94
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 7047d4c commit 3c50e94
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
0 commit comments