Skip to content

Commit

Permalink
fix: empty quoted attr value eats the next attr
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakKemble committed Dec 2, 2022
1 parent ad79f52 commit 0b8ef01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.js
Expand Up @@ -54,7 +54,7 @@ exports.getAttrs = function (str, start, options) {
}

// {value="inside quotes"}
if (char_ === '"' && value === '') {
if (char_ === '"' && value === '' && !valueInsideQuotes) {
valueInsideQuotes = true;
continue;
}
Expand Down

0 comments on commit 0b8ef01

Please sign in to comment.