Skip to content

Commit 0b8ef01

Browse files
committed
fix: empty quoted attr value eats the next attr
1 parent ad79f52 commit 0b8ef01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ exports.getAttrs = function (str, start, options) {
5454
}
5555

5656
// {value="inside quotes"}
57-
if (char_ === '"' && value === '') {
57+
if (char_ === '"' && value === '' && !valueInsideQuotes) {
5858
valueInsideQuotes = true;
5959
continue;
6060
}

0 commit comments

Comments
 (0)