From 0d1529371204084c3792e105c3ff82c49cd7861d Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 31 Oct 2025 14:10:49 +0100 Subject: [PATCH] chore: rename var --- .../experimental/route-resolver/matchers/matcher-pattern.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ? '/' : '') } } -- 2.47.3