Skip to content

Commit 45f4e12

Browse files
committed
Fix pcre tests using global.
1 parent 0bbbbfe commit 45f4e12

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
@@ -79,7 +79,7 @@ function runTests($tests, $pattern, $modifiers, $global, $requestId) {
7979
// Stop capturing warnings.
8080
restore_error_handler();
8181

82-
if ($match === 1) {
82+
if ($match > 0) {
8383
$testResults[] = [
8484
"id" => $id,
8585
"i" => $matches[0][0][1],

0 commit comments

Comments
 (0)