Remove an empty String#replace call (#13889)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-11-24 10:01:57 +08:00
1 parent 54a1a18f1b
commit 2f4233bc85
1 file changed
+1 -1
+1 -1
View File
@@ -74,7 +74,7 @@ function clean(ast, newObj, parent) {
(ast.type === "value-word" &&
((ast.isColor && ast.isHex) ||
["initial", "inherit", "unset", "revert"].includes(
newObj.value.replace().toLowerCase()
newObj.value.toLowerCase()
))) ||
ast.type === "media-feature" ||
ast.type === "selector-root-invalid" ||