]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: rename var
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 31 Oct 2025 13:10:49 +0000 (14:10 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 31 Oct 2025 13:10:49 +0000 (14:10 +0100)
packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts

index 9fb0a8017b1653726ccbb376c9fafb43f0b0134f..5e8094d6cc6711c9d5be21efdb94bf29189da011 100644 (file)
@@ -150,7 +150,7 @@ type ExtractLocationParamTypeFromOptions<TParamsOptions> = {
  *
  * @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<TParamsOptions>
      */
     return this.trailingSlash == null
       ? path + (!value && path.at(-1) !== '/' ? '/' : '')
-      : path.replace(RE_TRAILING_SLASHES, this.trailingSlash ? '/' : '')
+      : path.replace(TRAILING_SLASHES_RE, this.trailingSlash ? '/' : '')
   }
 }