We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0ac5d1 commit 4c8dd86Copy full SHA for 4c8dd86
1 file changed
scripts/dev/bless_tests.php
@@ -76,8 +76,8 @@ function normalizeOutput(string $out): string {
76
$out = preg_replace('/string\(\d+\) "([^"]*%d)/', 'string(%d) "$1', $out);
77
// Inside of strings, replace absolute paths that have been truncated with
78
// any string. These tend to contain homedirs with usernames, not good.
79
- $out = preg_replace("/(\/|[A-Z]:\\\\)\S+/", "'%s'", $out);
80
- $out = preg_replace("/'file:\/\\/.*\.\\.\\.'/", "'%s'", $out);
+ $out = preg_replace("/'(\/|[A-Z]:\\\\)\S+'/", "'%s'", $out);
+ $out = preg_replace("/'file:(\/|[A-Z]:\\\\)\S+'/", "'%s'", $out);
81
$out = str_replace("\0", '%0', $out);
82
return $out;
83
}
0 commit comments