Skip to content

Commit

Permalink
Support node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Dec 2, 2021
1 parent e83920a commit 013af55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/types/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ module.exports = Any.extend({

if (value === '') {
const min = schema.$_getRule('min');
if (min?.args.limit === 0) {
if (min &&
min.args.limit === 0) {

return;
}

Expand Down

0 comments on commit 013af55

Please sign in to comment.