Skip to content

Commit 76554cc

Browse files
committed
use string.raw in comment example too
1 parent b6bc25d commit 76554cc

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
@@ -6,7 +6,7 @@
66
* @example
77
* ```ts
88
* getCrossPlatformPathRegex("./middleware.mjs")
9-
* getCrossPlatformPathRegex("\\./middleware\\.(mjs|cjs)", { escape: false })
9+
* getCrossPlatformPathRegex(String.raw`\./middleware\.(mjs|cjs)`, { escape: false })
1010
* ```
1111
*/
1212
export function getCrossPlatformPathRegex(

0 commit comments

Comments
 (0)