mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-09-26 22:49:14 +08:00
- 移除 Widget.vue 中未使用的 midRegex 正则
- 改用 src/core/utils/urls
This commit is contained in:
parent
8edbdbf754
commit
32fe44ba00
@ -23,7 +23,6 @@ export default Vue.extend({
|
||||
data() {
|
||||
return {
|
||||
downloading: false,
|
||||
midRegex: /mid=(\d+)/,
|
||||
roomIdRegex: /^https:\/\/live\.bilibili\.com\/(?:blanc\/)?(\d+)(?:\?\.*?)?$/,
|
||||
}
|
||||
},
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { defineComponentMetadata } from '@/components/define'
|
||||
import { liveUrls } from '@/core/utils/urls'
|
||||
|
||||
export const component = defineComponentMetadata({
|
||||
name: 'downloadEmoticons',
|
||||
@ -12,5 +13,5 @@ export const component = defineComponentMetadata({
|
||||
widget: {
|
||||
component: () => import('./Widget.vue').then(m => m.default),
|
||||
},
|
||||
urlInclude: [/^https:\/\/live\.bilibili\.com\/(?:blanc)?\/\d+/],
|
||||
urlInclude: liveUrls,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user