fix[notEmpty]: set trim => trim()

This commit is contained in:
qige2016
2020-06-13 23:35:09 +08:00
parent 1c943509f9
commit 862fa88e99

View File

@@ -1,6 +1,6 @@
exports.notEmpty = name => {
return v => {
if (!v || v.trim === '') {
if (!v || v.trim() === '') {
return `${name} is required`
} else {
return true