1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Relax on tags (accept any characters and not required anymore)

This commit is contained in:
Chocobozzz 2017-03-22 21:47:05 +01:00
parent 6e07c3de88
commit e54163c2d5
7 changed files with 31 additions and 40 deletions

View file

@ -69,8 +69,7 @@ function isVideoTagsValid (tags) {
return miscValidators.isArray(tags) &&
validator.isInt(tags.length, VIDEOS_CONSTRAINTS_FIELDS.TAGS) &&
tags.every(function (tag) {
return validator.isAlphanumeric(tag) &&
validator.isLength(tag, VIDEOS_CONSTRAINTS_FIELDS.TAG)
return validator.isLength(tag, VIDEOS_CONSTRAINTS_FIELDS.TAG)
})
}