fix(check-unlocalized-strings): make HTML tag test case-insens (#7892)

This commit is contained in:
LoneRifle 2025-04-17 20:26:49 +08:00 committed by GitHub
parent 34989f8e96
commit 49d3cd0863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -275,8 +275,8 @@ function isCommonDevelopmentString(str) {
// HTML tags and attributes
if (
/^<[a-z0-9]+>.*<\/[a-z0-9]+>$/.test(str) ||
/^<[a-z0-9]+ [^>]+\/>$/.test(str)
/^<[a-z0-9]+(?:\s[^>]*)?>.*<\/[a-z0-9]+>$/i.test(str) ||
/^<[a-z0-9]+ [^>]+\/>$/i.test(str)
) {
return true;
}