Skip to content

Commit

Permalink
Fix "isUrl" max length
Browse files Browse the repository at this point in the history
  • Loading branch information
yagyudar committed Mar 16, 2017
1 parent f72ec86 commit ac49443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isURL.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function checkHost(host, matches) {

export default function isURL(url, options) {
assertString(url);
if (!url || url.length >= 2083 || /[\s<>]/.test(url)) {
if (!url || url.length > 2083 || /[\s<>]/.test(url)) {
return false;
}
if (url.indexOf('mailto:') === 0) {
Expand Down

0 comments on commit ac49443

Please sign in to comment.