Skip to content

Commit 0d15293

Browse files
committed
chore: rename var
1 parent 1f32602 commit 0d15293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ type ExtractLocationParamTypeFromOptions<TParamsOptions> = {
150150
*
151151
* @internal
152152
*/
153-
const RE_TRAILING_SLASHES = /\/*$/
153+
const TRAILING_SLASHES_RE = /\/*$/
154154

155155
/**
156156
* Handles the `path` part of a URL with dynamic parameters.
@@ -298,7 +298,7 @@ export class MatcherPatternPathDynamic<TParamsOptions>
298298
*/
299299
return this.trailingSlash == null
300300
? path + (!value && path.at(-1) !== '/' ? '/' : '')
301-
: path.replace(RE_TRAILING_SLASHES, this.trailingSlash ? '/' : '')
301+
: path.replace(TRAILING_SLASHES_RE, this.trailingSlash ? '/' : '')
302302
}
303303
}
304304

0 commit comments

Comments
 (0)