From: Eduardo San Martin Morote Date: Fri, 6 Dec 2024 08:41:57 +0000 (+0100) Subject: chore: comment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e76d25669b0b9c67848a04a1e3951aadc8536c62;p=thirdparty%2Fvuejs%2Frouter.git chore: comment [skip ci] --- diff --git a/packages/router/src/location.ts b/packages/router/src/location.ts index 0811c35c..0ca40799 100644 --- a/packages/router/src/location.ts +++ b/packages/router/src/location.ts @@ -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 )