Skip to content

Commit

Permalink
fixed crash, added missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Cactusbone committed May 18, 2017
1 parent 1556336 commit 5fd751d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jjv.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
'hostname': function (v) {
return v.length < 256 && (/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]))*$/).test(v);
},
'uri': function (v) {
'uri': function (v, schema) {
if(v == '' && schema.allowEmptyValue)
return true;
return (/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/).test(v);
Expand Down

0 comments on commit 5fd751d

Please sign in to comment.