add instagram stories support

+ some code cleanup and deduplication
This commit is contained in:
dumbmoron
2023-08-26 14:58:38 +00:00
parent b54efb968f
commit 395a59a8b1
4 changed files with 96 additions and 23 deletions

View File

@@ -26,7 +26,8 @@ export const testers = {
"soundcloud": (patternMatch) => (patternMatch["author"]?.length <= 25 && patternMatch["song"]?.length <= 255)
|| (patternMatch["shortLink"] && patternMatch["shortLink"].length <= 32),
"instagram": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 12),
"instagram": (patternMatch) => (patternMatch.postId?.length <= 12)
|| (patternMatch.username?.length <= 30 && patternMatch.storyId?.length <= 24),
"vine": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 12),