From bf84bbd3f51d072118e2c0de35ca3f8815a688a7 Mon Sep 17 00:00:00 2001 From: adt-hgkim Date: Fri, 22 Jul 2022 16:51:01 +0900 Subject: [PATCH] feat: routing: flat file system --- packages/kit/src/utils/routing.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/kit/src/utils/routing.js b/packages/kit/src/utils/routing.js index fb6d219ad4fb..701360fd9fff 100644 --- a/packages/kit/src/utils/routing.js +++ b/packages/kit/src/utils/routing.js @@ -67,6 +67,8 @@ export function parse_route_id(id) { .replace(/\?/g, '%3F') // escape characters that have special meaning in regex .replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + // replace '--' to '/' for flat file system + .replace(/--/g, '/') ); // TODO handle encoding }) .join('')