feat: add twitch vod/clip support

This commit is contained in:
Snazzah 2023-04-29 14:33:36 -05:00
parent a25615982c
commit fa7af1bf44
No known key found for this signature in database
GPG key ID: EA479766A94CEB61
7 changed files with 303 additions and 2 deletions

View file

@ -28,5 +28,7 @@ export const testers = {
"instagram": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 12),
"vine": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 12)
"vine": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 12),
"twitch": (patternMatch) => ((patternMatch["channel"] && patternMatch["clip"] && patternMatch["clip"].length <= 100 || patternMatch["video"] && patternMatch["video"].length <= 10)),
}