Skip to content

Commit 2552b7d

Browse files
committed
fix: update roomid matching regex
fix #51
1 parent db44283 commit 2552b7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/recorder/RoomList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ interface NewRoomModelType {
377377
autoRecord: boolean;
378378
}
379379
380-
const ROOM_ID_FROM_LINK_REGEX = /^(?:(?:https?:\/\/)?live\.bilibili\.com\/(?:blanc\/|h5\/)?)?(\d+)(?:\?.*)?(?:#.*)?$/;
380+
const ROOM_ID_FROM_LINK_REGEX = /^(?:(?:https?:\/\/)?live\.bilibili\.com\/(?:blanc\/|h5\/)?)?(\d+)\/?(?:[#\?].*)?$/;
381381
382382
const showNewRoomDialog = ref(false);
383383
const newRoomFormRef = ref<FormInst | null>(null);

0 commit comments

Comments
 (0)