mirror of
https://github.com/imputnet/cobalt.git
synced 2026-11-06 01:38:28 +00:00
add instagram stories support
+ some code cleanup and deduplication
This commit is contained in:
parent
b54efb968f
commit
395a59a8b1
4 changed files with 96 additions and 23 deletions
|
|
@ -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),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue