We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbfed10 commit 6764cefCopy full SHA for 6764cef
1 file changed
scripts/dev/bless_tests.php
@@ -76,7 +76,7 @@ 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("/'\\/.*\.\\.\\.'/", "'%s'", $out);
+ $out = preg_replace("(\/|[A-Z]:\\\\)\S+", "'%s'", $out);
80
$out = preg_replace("/'file:\/\\/.*\.\\.\\.'/", "'%s'", $out);
81
$out = str_replace("\0", '%0', $out);
82
return $out;
0 commit comments