We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7199d5c commit 80e602cCopy full SHA for 80e602c
src/build.mjs
@@ -92,9 +92,9 @@ export const build = (statics) => {
92
current = [current];
93
mode = MODE_TAGNAME;
94
}
95
- else if (mode !== MODE_TEXT && (idx = '\'">=/\t\n\r '.indexOf(char)) >= 0 && char.indexOf(quote) >= 0) {
+ else if (mode !== MODE_TEXT && (char === quote || !quote) && (idx = '\'">=/\t\n\r '.indexOf(char)) >= 0) {
96
if (idx < 2) {
97
- // char is a quote && (quote === char || quote is empty)
+ // char === '"' || char === "'"
98
quote = quote ? '' : char;
99
100
else if (idx === 2) {
0 commit comments