Skip to content

πŸ™Œ OpenHands: AI-Driven Development

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

LoneRifle49d3cd086345
diff --git a/frontend/scripts/check-unlocalized-strings.cjs b/frontend/scripts/check-unlocalized-strings.cjs
index 16342fb96b..89384d5ee8 100755
--- a/frontend/scripts/check-unlocalized-strings.cjs
+++ b/frontend/scripts/check-unlocalized-strings.cjs
@@ -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;
}