diff --git a/registry/lib/components/live/badge-keepalive/utils.ts b/registry/lib/components/live/badge-keepalive/utils.ts index b60385c04..63d31a662 100644 --- a/registry/lib/components/live/badge-keepalive/utils.ts +++ b/registry/lib/components/live/badge-keepalive/utils.ts @@ -5,7 +5,7 @@ import { getCsrf, getUID } from '@/core/utils' export function getLiveRoomId(): string { let matched = location.href.match(/live.bilibili.com\/(\d+)/) if (matched) { - return matched[1] + return matched[1] } matched = location.href.match(/live.bilibili.com\/blanc\/(\d+)/) return matched ? matched[1] : ''