From e134216f6a0740661da0d058de375362f899e81c Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Wed, 19 Feb 2025 19:02:53 +0100 Subject: [PATCH] fix: no hash if keyValue is empty --- source/text/bracketed-key-value-hash.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/text/bracketed-key-value-hash.mjs b/source/text/bracketed-key-value-hash.mjs index 3c7f978f7..f0a712752 100644 --- a/source/text/bracketed-key-value-hash.mjs +++ b/source/text/bracketed-key-value-hash.mjs @@ -243,9 +243,9 @@ function createBracketedKeyValueHash(object, addHashPrefix = true) { } } - if (hashString.length === 0) { + if (hashString.length>0 && addHashPrefix) { hashString = "#" + hashString; } - return addHashPrefix ? hashString : hashString; + return hashString; } -- GitLab