Skip to content

Commit

Permalink
Allow whitespace in HTML tags in translations
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Jun 27, 2024
1 parent eac6a98 commit 0cab74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/scripts/verify-translations-format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function checkHtmlTagsImpl(value: string): { correct: boolean, amount: number }
for (let tag of tagTypes) {
const selfClosing = tag.endsWith('/');
const endTag = tag.startsWith('/');
tag = endTag ? tag.slice(1) : selfClosing ? tag.slice(0, -1) : tag;
tag = endTag ? tag.slice(1) : selfClosing ? tag.slice(0, -1).trim() : tag;

if (!ALLOWED_TAGS.includes(tag)) {
console.error(`Tag "<${tag}>" not allowed: "${value}"`);
Expand Down

0 comments on commit 0cab74c

Please sign in to comment.