We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c81b48f commit ecea9d5Copy full SHA for ecea9d5
1 file changed
test/specs/special-characters-files/special-characters-files.spec.ts
@@ -5,7 +5,7 @@ import path from "../../utils/path.js";
5
const isBrowser = typeof window !== "undefined";
6
7
function normalizePathForAssertion(entry: string) {
8
- return decodeURIComponent(entry)
+ return decodeURIComponent(entry.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"))
9
.replace(/\\/g, "/")
10
.replace(/^file:\/\/\/([A-Z]):/, (_match, drive: string) => `file:///${drive.toLowerCase()}:`)
11
.replace(/^([A-Z]):/, (_match, drive: string) => `${drive.toLowerCase()}:`);
0 commit comments