]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: comment
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 6 Dec 2024 08:41:57 +0000 (09:41 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 16 Jul 2025 07:57:54 +0000 (09:57 +0200)
[skip ci]

packages/router/src/location.ts

index ad317332cbe624ef7af6096188e9be2a28cf1371..af2444de339e819e8bae3234e633b4782e051537 100644 (file)
@@ -63,6 +63,7 @@ export function parseURL(
     // keep the ? char
     searchString = location.slice(
       searchPos,
+      // hashPos cannot be 0 because there is a search section in the location
       hashPos > 0 ? hashPos : location.length
     )