File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/event-handler/src/http Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ const PARAM_PATTERN = /:([a-zA-Z_]\w*)(?=\/|$)/g;
8686
8787const SAFE_CHARS = "-._~()'!*:@,;=+&$" ;
8888
89- const UNSAFE_CHARS = ' %<> \\[\\ ]{}|^' ;
89+ const UNSAFE_CHARS = String . raw ` %<> \[\ ]{}|^` ;
9090
9191/**
9292 * Default CORS configuration
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import { handlerResultToWebResponse } from './converters.js';
3636import type { Router } from './Router.js' ;
3737
3838export function getPathString ( path : Path ) : string {
39- return isString ( path ) ? path : path . source . replaceAll ( / \\ \/ / g , '/' ) ;
39+ return isString ( path ) ? path : path . source . replaceAll ( String . raw `\/` , '/' ) ;
4040}
4141
4242export function compilePath ( path : Path ) : CompiledRoute {
You can’t perform that action at this time.
0 commit comments