From 0b8ef019831652433d4da385ee373666dcef389a Mon Sep 17 00:00:00 2001 From: Zak Kemble Date: Fri, 2 Dec 2022 16:25:25 +0000 Subject: [PATCH] fix: empty quoted attr value eats the next attr --- utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.js b/utils.js index 2bc7727..b577b81 100644 --- a/utils.js +++ b/utils.js @@ -54,7 +54,7 @@ exports.getAttrs = function (str, start, options) { } // {value="inside quotes"} - if (char_ === '"' && value === '') { + if (char_ === '"' && value === '' && !valueInsideQuotes) { valueInsideQuotes = true; continue; }