We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c59b7e4 commit efa5ecaCopy full SHA for efa5eca
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("/'\\/.*\.\\.\\.'/", "'%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