Skip to content

Commit fed4192

Browse files
committed
Used replaceAll
1 parent e8cba28 commit fed4192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/event-handler/src/rest/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
} from './constants.js';
2121

2222
export function getPathString(path: Path): string {
23-
return isString(path) ? path : path.source.replace(/\\\//g, '/');
23+
return isString(path) ? path : path.source.replaceAll(/\\\//g, '/');
2424
}
2525

2626
export function compilePath(path: Path): CompiledRoute {

0 commit comments

Comments
 (0)