fix: equal

This commit is contained in:
soulsands 2023-04-08 19:54:59 +08:00
parent ab7a07a318
commit 49d1c5140e

View File

@ -122,7 +122,7 @@ function isAttributeType(type) {
function isAttributeDangerous(type, name) { function isAttributeDangerous(type, name) {
return BUILTIN_ATTRIBUTES.some(attr => return BUILTIN_ATTRIBUTES.some(attr =>
attr.type === attr.type && attr.type === type &&
attr.name.toLowerCase() === name.trim().toLowerCase() && attr.name.toLowerCase() === name.trim().toLowerCase() &&
attr.isDangerous attr.isDangerous
); );