Skip to content

Commit 862fa88

Browse files
committed
fix[notEmpty]: set trim => trim()
1 parent 1c94350 commit 862fa88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plop-templates/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exports.notEmpty = name => {
22
return v => {
3-
if (!v || v.trim === '') {
3+
if (!v || v.trim() === '') {
44
return `${name} is required`
55
} else {
66
return true

0 commit comments

Comments
 (0)