Skip to content

Commit b411980

Browse files
committed
Support %e in bless_tests.php
1 parent 259af93 commit b411980

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/dev/bless_tests.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function formatToRegex(string $format): string {
7979
$result = preg_quote($format, '/');
8080
$result = str_replace('%d', '\d+', $result);
8181
$result = str_replace('%s', '[^\r\n]+', $result);
82+
$result = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $result);
8283
return "/^$result$/s";
8384
}
8485

0 commit comments

Comments
 (0)