1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Add advanced search in client

This commit is contained in:
Chocobozzz 2018-07-20 18:31:49 +02:00
parent d525fc399a
commit 0b18f4aa80
21 changed files with 583 additions and 33 deletions

View file

@ -11,9 +11,14 @@ function isStringArray (value: any) {
return isArray(value) && value.every(v => typeof v === 'string')
}
function isNSFWQueryValid (value: any) {
return value === 'true' || value === 'false' || value === 'both'
}
// ---------------------------------------------------------------------------
export {
isNumberArray,
isStringArray
isStringArray,
isNSFWQueryValid
}