Skip to content

Commit

Permalink
Merge pull request #640 from yagyudar/master
Browse files Browse the repository at this point in the history
Fix "isUrl" max length
  • Loading branch information
chriso authored Apr 5, 2017
2 parents 9c56b2c + ac49443 commit fb2ae42
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 fb2ae42

Please sign in to comment.