mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-13 08:48:26 +00:00
api/service-patterns: fix reddit id pattern
This commit is contained in:
parent
ed8e234e3b
commit
06a28dd347
@ -20,7 +20,7 @@ export const testers = {
|
||||
pattern.id?.length <= 128 || pattern.shortLink?.length <= 32,
|
||||
|
||||
"reddit": pattern =>
|
||||
pattern.id?.length <= 16
|
||||
pattern.id?.length <= 16 && !pattern.sub && !pattern.user
|
||||
|| (pattern.sub?.length <= 22 && pattern.id?.length <= 16)
|
||||
|| (pattern.user?.length <= 22 && pattern.id?.length <= 16)
|
||||
|| (pattern.sub?.length <= 22 && pattern.shareId?.length <= 16),
|
||||
|
Loading…
Reference in New Issue
Block a user