ignore hashtag in url dupe detection
This commit is contained in:
parent
4d8ff46574
commit
6cc7288e99
|
@ -283,7 +283,7 @@ export default {
|
|||
const matches = url.match(/(https?:\/\/)?((www\.)?(youtube(-nocookie)?|youtube.googleapis)\.com.*(v\/|v=|vi=|vi\/|e\/|embed\/|user\/.*\/u\/\d+\/)|youtu\.be\/)(?<id>[_0-9a-z-]+)/i)
|
||||
similar = `(http(s)?://)?(www.youtube.com/watch\\?v=${matches?.groups?.id}|youtu.be/${matches?.groups?.id})`
|
||||
} else {
|
||||
similar += '(\\?%)?'
|
||||
similar += '((\\?|#)%)?'
|
||||
}
|
||||
|
||||
return await models.$queryRaw(`
|
||||
|
|
Loading…
Reference in New Issue