From b3280811f3522d38f46b7fb7b2ff65af2b473aa5 Mon Sep 17 00:00:00 2001 From: Scan <103391616+scanash00@users.noreply.github.com> Date: Sun, 10 Aug 2025 02:11:44 -0800 Subject: [PATCH] Potential fix for code scanning alert no. 7: Inefficient regular expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/services/social/fetchers/UnifiedFetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/social/fetchers/UnifiedFetcher.ts b/src/services/social/fetchers/UnifiedFetcher.ts index 682ba68..bda9fbd 100644 --- a/src/services/social/fetchers/UnifiedFetcher.ts +++ b/src/services/social/fetchers/UnifiedFetcher.ts @@ -65,7 +65,7 @@ export class BlueskyFetcher implements SocialMediaFetcher { isValidAccount(account: string): boolean { if (!account) return false; const handle = this.normalizeHandle(account); - return /^[a-zA-Z0-9.-]+(\.[a-zA-Z0-9.-]+)*$/.test(handle); + return /^[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(handle); } private normalizeHandle(handle: string): string { -- 2.51.2