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 a0e8f15 commit c9d3445Copy full SHA for c9d3445
src/router/lookup_store/url_builder.ts
@@ -110,8 +110,7 @@ export class UrlBuilder {
110
* we must break out from the loop
111
*/
112
if (token.type === 0) {
113
- const value = token.val.startsWith('/') ? token.val.substring(1) : token.val
114
- uriSegments.push(`${value}${token.end}`)
+ uriSegments.push(token.val === '/' ? '' : `${token.val}${token.end}`)
115
} else if (token.type === 2) {
116
const values: string[] = paramsArray ? paramsArray.slice(paramsIndex) : paramsObject['*']
117
this.#ensureHasWildCardValues(pattern, values)
0 commit comments