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 3a5c6fd commit b6bc25dCopy full SHA for b6bc25d
packages/tests-unit/tests/utils/regex.test.ts
@@ -32,9 +32,10 @@ describe("getCrossPlatformPathRegex", () => {
32
});
33
34
it("should return cross-platform paths without escaping special characters", () => {
35
- const regex = getCrossPlatformPathRegex("\\./middleware\\.(mjs|cjs)", {
36
- escape: false,
37
- });
+ const regex = getCrossPlatformPathRegex(
+ String.raw`\./middleware\.(mjs|cjs)`,
+ { escape: false },
38
+ );
39
expect(regex.source).toEqual(String.raw`\.(?:\/|\\)middleware\.(mjs|cjs)`);
40
41
0 commit comments