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 cef92ca commit 3380a07Copy full SHA for 3380a07
packages/open-next/src/utils/regex.ts
@@ -3,8 +3,8 @@ export function getCrossPlatformPathRegex(
3
opts: { escape: boolean } = { escape: true },
4
) {
5
const newExpr = (
6
- opts.escape ? regex.replace(/([[\]().*+?^$|])/g, '\\$1') : regex
7
- ).replaceAll('/', '(?:\\/|\\\\)');
+ opts.escape ? regex.replace(/([[\]().*+?^$|])/g, "\\$1") : regex
+ ).replaceAll("/", "(?:\\/|\\\\)");
8
9
- return new RegExp(newExpr, 'g');
+ return new RegExp(newExpr, "g");
10
}
0 commit comments