diff --git a/mod.ts b/mod.ts index 008ee3f..0d7d53e 100644 --- a/mod.ts +++ b/mod.ts @@ -198,7 +198,7 @@ export class HTTPServer { (accum: { [key: string]: string }, curr: RouteParam) => { return { ...accum, - [curr.paramKey]: routeSegments[curr.idx], + [curr.paramKey]: routeSegments[curr.idx].replace(/(?!\/)\W\D.*/gm, ""), }; }, {},