style: format onboard providers
This commit is contained in:
parent
36a21ae9b0
commit
579b00503f
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue