mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-28 11:37:16 +00:00
fix: support multi-digit plus notification badges while preserving large numeric titles
This commit is contained in:
@@ -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{1,2}\+?\])\s+/, '').trim();
|
||||
const normalized = title.replace(/^\s*(?:\((?:\d{1,2}|\d+\+)\)|\[(?:\d{1,2}|\d+\+)\])\s+/, '').trim();
|
||||
return normalized.length > 0 ? normalized : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user