fix: strip all parenthesized/bracketed leading numbers in tab title normalization

This commit is contained in:
Timo
2026-07-12 17:54:54 +02:00
parent af1b66c6b7
commit 63414bfcdd
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export function normalizeSendTabTitle(sendTabTitle, legacyMode = TITLE_PRIVACY_M
export function normalizeTabTitle(title) {
if (typeof title !== 'string') return null;
const normalized = title.replace(/^\s*(?:\((?:\d{1,2}|\d+\+)\)|\[(?:\d{1,2}|\d+\+)\])\s+/, '').trim();
const normalized = title.replace(/^\s*(?:\(\d+\+?\)|\[\d+\+?\])\s+/, '').trim();
return normalized.length > 0 ? normalized : null;
}