update regex for check html (#22596)
parent
00bd32acba
commit
76ee9ce202
|
@ -13,7 +13,7 @@ const srcMeta = "src/translations/translationMetadata.json";
|
||||||
const encoding = "utf8";
|
const encoding = "utf8";
|
||||||
|
|
||||||
function hasHtml(data) {
|
function hasHtml(data) {
|
||||||
return /<[a-z][\s\S]*>/i.test(data);
|
return /<\S*>/i.test(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
function recursiveCheckHasHtml(file, data, errors, recKey) {
|
function recursiveCheckHasHtml(file, data, errors, recKey) {
|
||||||
|
|
Loading…
Reference in New Issue