Skip to content

Commit ecea9d5

Browse files
committed
test
1 parent c81b48f commit ecea9d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/specs/special-characters-files/special-characters-files.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from "../../utils/path.js";
55
const isBrowser = typeof window !== "undefined";
66

77
function normalizePathForAssertion(entry: string) {
8-
return decodeURIComponent(entry)
8+
return decodeURIComponent(entry.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"))
99
.replace(/\\/g, "/")
1010
.replace(/^file:\/\/\/([A-Z]):/, (_match, drive: string) => `file:///${drive.toLowerCase()}:`)
1111
.replace(/^([A-Z]):/, (_match, drive: string) => `${drive.toLowerCase()}:`);

0 commit comments

Comments
 (0)