Skip to content

Commit 4fdde90

Browse files
improve test (WP-1004)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7c12fbc commit 4fdde90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Smartling/WP/View/ContentEditJobViewTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private function resolveTemplate(bool $needWrapper, bool $isBulkSubmitPage = fal
6464
);
6565

6666
$source = preg_replace_callback(
67-
'#<\?php\s+if\s*\(\s*!\$isBulkSubmitPage\s*\)\s*:\s*\?>((?:(?!<\?php\s+endif).)*)<\?php\s+endif\s*;\s*\?>#s',
67+
'#<\?php\s.*?if\s*\(\s*!\$isBulkSubmitPage\s*\)\s*:\s*\?>((?:(?!<\?php\s+endif).)*)<\?php\s+endif\s*;\s*\?>#s',
6868
static fn(array $m): string => $isBulkSubmitPage ? '' : $m[1],
6969
$source
7070
);

0 commit comments

Comments
 (0)