Skip to content

Commit 013af55

Browse files
committed
Support node 12
1 parent e83920a commit 013af55

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/types/string.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ module.exports = Any.extend({
131131

132132
if (value === '') {
133133
const min = schema.$_getRule('min');
134-
if (min?.args.limit === 0) {
134+
if (min &&
135+
min.args.limit === 0) {
136+
135137
return;
136138
}
137139

0 commit comments

Comments
 (0)