style: format onboard providers

This commit is contained in:
Peter Steinberger
2026-01-11 04:08:26 +01:00
parent 36a21ae9b0
commit 579b00503f

View File

@@ -492,7 +492,11 @@ function parseTelegramAllowFromEntries(raw: string): {
const match = part.match(/^(telegram|tg):(.+)$/i);
const value = match ? match[2]?.trim() : part;
if (!value) {
return { entries: [], hasUsernames: false, error: `Invalid entry: ${part}` };
return {
entries: [],
hasUsernames: false,
error: `Invalid entry: ${part}`,
};
}
if (/^\d+$/.test(value)) {
entries.push(part);