This commit is contained in:
syuilo
2018-04-05 18:50:52 +09:00
parent 7403f38fb4
commit fd87a63e57
3 changed files with 4 additions and 3 deletions

View File

@@ -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');