]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/helpers/custom-validators/pods.js
3 const validator
= require('express-validator').validator
5 const miscValidators
= require('./misc')
7 const podsValidators
= {
11 function isEachUniqueUrlValid (urls
) {
12 return miscValidators
.isArray(urls
) &&
14 urls
.every(function (url
) {
15 return validator
.isURL(url
) && urls
.indexOf(url
) === urls
.lastIndexOf(url
)
19 // ---------------------------------------------------------------------------
21 module
.exports
= podsValidators