Aethel Bot OSS repository! aethel.xyz
bot fun ai discord discord-bot aethel

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>

authored by

Scan
Copilot Autofix powered by AI
and committed by
GitHub
b3280811 35467c71

+1 -1
+1 -1
src/services/social/fetchers/UnifiedFetcher.ts
··· 65 65 isValidAccount(account: string): boolean { 66 66 if (!account) return false; 67 67 const handle = this.normalizeHandle(account); 68 - return /^[a-zA-Z0-9.-]+(\.[a-zA-Z0-9.-]+)*$/.test(handle); 68 + return /^[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(handle); 69 69 } 70 70 71 71 private normalizeHandle(handle: string): string {