From: Eduardo San Martin Morote Date: Fri, 31 Oct 2025 13:10:49 +0000 (+0100) Subject: chore: rename var X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d1529371204084c3792e105c3ff82c49cd7861d;p=thirdparty%2Fvuejs%2Frouter.git chore: rename var --- diff --git a/packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts b/packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts index 9fb0a801..5e8094d6 100644 --- a/packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts +++ b/packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts @@ -150,7 +150,7 @@ type ExtractLocationParamTypeFromOptions = { * * @internal */ -const RE_TRAILING_SLASHES = /\/*$/ +const TRAILING_SLASHES_RE = /\/*$/ /** * Handles the `path` part of a URL with dynamic parameters. @@ -298,7 +298,7 @@ export class MatcherPatternPathDynamic */ return this.trailingSlash == null ? path + (!value && path.at(-1) !== '/' ? '/' : '') - : path.replace(RE_TRAILING_SLASHES, this.trailingSlash ? '/' : '') + : path.replace(TRAILING_SLASHES_RE, this.trailingSlash ? '/' : '') } }