mirror of
https://github.com/imputnet/cobalt.git
synced 2026-11-06 01:38:28 +00:00
reddit: add support for user post links & clean up (#484)
This commit is contained in:
parent
080fc043ea
commit
a5a01cc0c6
4 changed files with 49 additions and 17 deletions
|
|
@ -16,7 +16,8 @@ export const testers = {
|
|||
patternMatch.id?.length <= 128 || patternMatch.shortLink?.length <= 32,
|
||||
|
||||
"reddit": (patternMatch) =>
|
||||
patternMatch.sub?.length <= 22 && patternMatch.id?.length <= 10,
|
||||
(patternMatch.sub?.length <= 22 && patternMatch.id?.length <= 10)
|
||||
|| (patternMatch.user?.length <= 22 && patternMatch.id?.length <= 10),
|
||||
|
||||
"rutube": (patternMatch) =>
|
||||
patternMatch.id?.length === 32 || patternMatch.yappyId?.length === 32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue