mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-12 20:25:06 +01:00
fix soundcloud pattern test
merge pull request #167 from dumbmoron/fix-soundcloud-pattern-test
This commit is contained in:
commit
a1637e249f
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ export const testers = {
|
|||
|
||||
"vimeo": (patternMatch) => ((patternMatch["id"] && patternMatch["id"].length <= 11)),
|
||||
|
||||
"soundcloud": (patternMatch) => ((patternMatch["author"] && patternMatch["song"]
|
||||
&& (patternMatch["author"].length + patternMatch["song"].length) <= 96) || (patternMatch["shortLink"] && patternMatch["shortLink"].length <= 32)),
|
||||
"soundcloud": (patternMatch) => (patternMatch["author"]?.length <= 25 && patternMatch["song"]?.length <= 255)
|
||||
|| (patternMatch["shortLink"] && patternMatch["shortLink"].length <= 32),
|
||||
|
||||
"instagram": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 12),
|
||||
|
||||
|
|
Loading…
Reference in a new issue