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 b59027a commit cc4f5f4Copy full SHA for cc4f5f4
packages/open-next/src/utils/regex.ts
@@ -17,7 +17,7 @@ type Options = {
17
*/
18
export function getCrossPlatformPathRegex(
19
regex: string,
20
- { escape: shouldEscape = true, flags = "g" }: Options = {},
+ { escape: shouldEscape = true, flags = "" }: Options = {},
21
) {
22
const newExpr = (
23
shouldEscape ? regex.replace(/([[\]().*+?^$|{}\\])/g, "\\$1") : regex
0 commit comments