mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-29 03:53:59 -06:00
23 lines
514 B
TypeScript
23 lines
514 B
TypeScript
import { isUserDescriptionValid, isUserUsernameValid } from './users'
|
|
import { exists } from './misc'
|
|
|
|
function isAccountNameValid (value: string) {
|
|
return isUserUsernameValid(value)
|
|
}
|
|
|
|
function isAccountIdValid (value: string) {
|
|
return exists(value)
|
|
}
|
|
|
|
function isAccountDescriptionValid (value: string) {
|
|
return isUserDescriptionValid(value)
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
isAccountIdValid,
|
|
isAccountDescriptionValid,
|
|
isAccountNameValid
|
|
}
|