diff options
Diffstat (limited to 'server/helpers/custom-validators/video-comments.ts')
-rw-r--r-- | server/helpers/custom-validators/video-comments.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/server/helpers/custom-validators/video-comments.ts b/server/helpers/custom-validators/video-comments.ts deleted file mode 100644 index 94bdf237a..000000000 --- a/server/helpers/custom-validators/video-comments.ts +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | import validator from 'validator' | ||
2 | import { CONSTRAINTS_FIELDS } from '../../initializers/constants' | ||
3 | |||
4 | const VIDEO_COMMENTS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_COMMENTS | ||
5 | |||
6 | function isValidVideoCommentText (value: string) { | ||
7 | return value === null || validator.isLength(value, VIDEO_COMMENTS_CONSTRAINTS_FIELDS.TEXT) | ||
8 | } | ||
9 | |||
10 | // --------------------------------------------------------------------------- | ||
11 | |||
12 | export { | ||
13 | isValidVideoCommentText | ||
14 | } | ||