Skip to content

Commit cc4f5f4

Browse files
authored
refactor: getCrossPlatformPathRegex don't return global regexs by default (#739)
1 parent b59027a commit cc4f5f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/open-next/src/utils/regex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type Options = {
1717
*/
1818
export function getCrossPlatformPathRegex(
1919
regex: string,
20-
{ escape: shouldEscape = true, flags = "g" }: Options = {},
20+
{ escape: shouldEscape = true, flags = "" }: Options = {},
2121
) {
2222
const newExpr = (
2323
shouldEscape ? regex.replace(/([[\]().*+?^$|{}\\])/g, "\\$1") : regex

0 commit comments

Comments
 (0)