mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-07 15:46:05 +00:00
fix soundcloud pattern test
username can actually be up to 25 characters long, song url can actually be up to 255 characters long
This commit is contained in:
parent
bd04de65d7
commit
c3071b54c2
|
@ -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