1 import validator from 'validator'
2 import { CONSTRAINTS_FIELDS } from '../../initializers/constants'
4 const VIDEO_COMMENTS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_COMMENTS
6 function isValidVideoCommentText (value: string) {
7 return value === null || validator.isLength(value, VIDEO_COMMENTS_CONSTRAINTS_FIELDS.TEXT)
10 // ---------------------------------------------------------------------------
13 isValidVideoCommentText