bilibili: add support for bilibili.tv links

closes #319
This commit is contained in:
dumbmoron
2024-02-15 18:11:18 +00:00
parent 6e1eddad82
commit 0852ade1be
5 changed files with 104 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
export const testers = {
"bilibili": (patternMatch) =>
patternMatch.id?.length <= 12 || patternMatch.shortLink?.length <= 16,
"bilibili": (patternMatch) =>
patternMatch.comId?.length <= 12 || patternMatch.comShortLink?.length <= 16
|| patternMatch.tvId?.length <= 24,
"instagram": (patternMatch) =>
patternMatch.postId?.length <= 12