Make coding style project consistent.

This commit is contained in:
Tom Anthony
2020-07-24 10:41:06 +01:00
parent f454fd76e6
commit 379d181273
2 changed files with 7 additions and 6 deletions

View File

@@ -87,12 +87,14 @@ function parseTag(html, onTag, escapeHtml) {
}
if ((c === '"' || c === "'")) {
var i = 1;
while ((html.charAt(currentPos - i) === " ") || (html.charAt(currentPos - i) === "=")) {
if (html.charAt(currentPos - i) === "=") {
var ic = html.charAt(currentPos - i);
while ((ic === " ") || (ic === "=")) {
if (ic === "=") {
quoteStart = c;
continue chariterator;
}
i++;
ic = html.charAt(currentPos - ++i);
}
}
} else {