style: format onboard providers
This commit is contained in:
@@ -492,7 +492,11 @@ function parseTelegramAllowFromEntries(raw: string): {
|
|||||||
const match = part.match(/^(telegram|tg):(.+)$/i);
|
const match = part.match(/^(telegram|tg):(.+)$/i);
|
||||||
const value = match ? match[2]?.trim() : part;
|
const value = match ? match[2]?.trim() : part;
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return { entries: [], hasUsernames: false, error: `Invalid entry: ${part}` };
|
return {
|
||||||
|
entries: [],
|
||||||
|
hasUsernames: false,
|
||||||
|
error: `Invalid entry: ${part}`,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
if (/^\d+$/.test(value)) {
|
if (/^\d+$/.test(value)) {
|
||||||
entries.push(part);
|
entries.push(part);
|
||||||
|
|||||||
Reference in New Issue
Block a user