]> 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>
Fri, 6 Dec 2024 08:41:57 +0000 (09:41 +0100)
[skip ci]

packages/router/src/location.ts

index 0811c35c265af3fa8d8a6414a69b973c8e9fc28b..0ca40799cfae609cb74dba23c0bb7bb4c3028a9a 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
     )