Update utils.js (#1079)

Adding "bsd" to the set of valid computer strings because in my case "linux" would be a lie. :)
This commit is contained in:
Matthew Graybosch 2021-06-08 16:56:57 -04:00 committed by GitHub
parent 5fdce356bc
commit 06741bb2fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ module.exports.Schema = Joi.object({
.required(),
twitter: Joi.string().pattern(new RegExp(/^@?(\w){1,15}$/)),
emoji: Joi.string().allow(''),
computer: Joi.string().valid('apple', 'windows', 'linux'),
computer: Joi.string().valid('apple', 'windows', 'linux', 'bsd'),
phone: Joi.string().valid('iphone', 'android', 'windowsphone','flipphone'),
tags: Joi.array().items(Joi.string()),
});