summaryrefslogtreecommitdiff
path: root/scripts/dev/bless_tests.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev/bless_tests.php')
-rwxr-xr-xscripts/dev/bless_tests.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/dev/bless_tests.php b/scripts/dev/bless_tests.php
index b772f00cc1..8532e9386d 100755
--- a/scripts/dev/bless_tests.php
+++ b/scripts/dev/bless_tests.php
@@ -106,7 +106,8 @@ function generateMinimallyDifferingOutput(string $out, string $oldExpect) {
function insertOutput(string $phpt, string $out): string {
return preg_replace_callback('/--EXPECTF?--.*$/s', function($matches) use($out) {
- $F = strpos($out, '%') !== false ? 'F' : '';
+ $hasWildcard = preg_match('/%[resSaAwidxfc]/', $out);
+ $F = $hasWildcard ? 'F' : '';
return "--EXPECT$F--\n" . $out . "\n";
}, $phpt);
}