未验证 提交 6d88db5c 编写于 作者: Q qige2016 提交者: GitHub

fix[plop]: set trim => trim() (#3254)

notEmpty 
上级 1c943509
exports.notEmpty = name => {
return v => {
if (!v || v.trim === '') {
return `${name} is required`
} else {
return true
}
}
}
exports.notEmpty = name => v =>
!v || v.trim() === '' ? `${name} is required` : true
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册