wip
This commit is contained in:
parent
7403f38fb4
commit
fd87a63e57
3 changed files with 4 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ export default async (value, verifier?: string) => {
|
|||
object.type !== 'Person' ||
|
||||
typeof object.preferredUsername !== 'string' ||
|
||||
!validateUsername(object.preferredUsername) ||
|
||||
!isValidName(object.name) ||
|
||||
(object.name != '' && !isValidName(object.name)) ||
|
||||
!isValidDescription(object.summary)
|
||||
) {
|
||||
throw new Error('invalid person');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue