Skip to content

Commit 04840c0

Browse files
committed
Revert use of mb_ereg_replace.
1 parent 3332ff0 commit 04840c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/actions/regex/solve.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function pcreList($pattern, $modifiers, $source, $str) {
101101
}
102102

103103
function pcreReplace($pattern, $modifiers, $text, $input) {
104-
return mb_ereg_replace("/{$pattern}/{$modifiers}", $input, $text);
104+
return preg_replace("/{$pattern}/{$modifiers}", $input, $text);
105105
}
106106

107107
function pcreMatch($pattern, $modifiers, $global, $text) {

0 commit comments

Comments
 (0)