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 1f32602 commit 0d15293Copy full SHA for 0d15293
packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts
@@ -150,7 +150,7 @@ type ExtractLocationParamTypeFromOptions<TParamsOptions> = {
150
*
151
* @internal
152
*/
153
-const RE_TRAILING_SLASHES = /\/*$/
+const TRAILING_SLASHES_RE = /\/*$/
154
155
/**
156
* Handles the `path` part of a URL with dynamic parameters.
@@ -298,7 +298,7 @@ export class MatcherPatternPathDynamic<TParamsOptions>
298
299
return this.trailingSlash == null
300
? path + (!value && path.at(-1) !== '/' ? '/' : '')
301
- : path.replace(RE_TRAILING_SLASHES, this.trailingSlash ? '/' : '')
+ : path.replace(TRAILING_SLASHES_RE, this.trailingSlash ? '/' : '')
302
}
303
304
0 commit comments