Remove usage of == and !=
This commit is contained in:
@@ -51,7 +51,7 @@ export function strip(text) {
|
||||
if (isDigit(text[i + 1])) {
|
||||
i++;
|
||||
}
|
||||
if (text[i + 1] == "," && isDigit(text[i + 2])) {
|
||||
if (text[i + 1] === "," && isDigit(text[i + 2])) {
|
||||
i += 2;
|
||||
if (isDigit(text[i + 1])) {
|
||||
i++;
|
||||
@@ -63,7 +63,7 @@ export function strip(text) {
|
||||
break;
|
||||
}
|
||||
i += HEX_COLOR_LENGTH;
|
||||
if (text[i + 1] == "," && isHexColor(text.slice(i + 2))) {
|
||||
if (text[i + 1] === "," && isHexColor(text.slice(i + 2))) {
|
||||
i += 1 + HEX_COLOR_LENGTH;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user