From: Eduardo San Martin Morote Date: Tue, 7 Jan 2025 13:22:51 +0000 (+0100) Subject: chore: small fix X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8e01d3fa2cf92640fa8eebded124604675ec3ce;p=thirdparty%2Fvuejs%2Frouter.git chore: small fix --- diff --git a/packages/router/src/experimental/router.ts b/packages/router/src/experimental/router.ts index 3c79d2c6..95762e89 100644 --- a/packages/router/src/experimental/router.ts +++ b/packages/router/src/experimental/router.ts @@ -536,10 +536,10 @@ export function experimental_createRouter( if ( typeof rawLocation === 'object' && - rawLocation.hash?.startsWith('#') + !rawLocation.hash?.startsWith('#') ) { warn( - `A \`hash\` should always start with the character "#". Replace "${hash}" with "#${hash}".` + `A \`hash\` should always start with the character "#". Replace "${rawLocation.hash}" with "#${rawLocation.hash}".` ) } }