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 42c05f4 commit 838f77dCopy full SHA for 838f77d
packages/event-handler/src/rest/RouteHandlerRegistry.ts
@@ -104,7 +104,7 @@ class RouteHandlerRegistry {
104
105
const compiled = compilePath(route.path);
106
107
- if (/[^a-zA-Z0-9/-:]/.test(compiled.path)) {
+ if (/[\w/:-]/.test(compiled.path)) {
108
if (this.#regexRoutes.has(route.id)) {
109
this.#logger.warn(
110
`Handler for method: ${route.method} and path: ${route.path} already exists. The previous handler will be replaced.`
0 commit comments