Skip to content

Commit

Permalink
Additional stuff for #670
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jun 22, 2017
1 parent 9a1e691 commit 812bf04
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- Added an `isISRC()` validator for [ISRC](https://en.wikipedia.org/wiki/International_Standard_Recording_Code)
([#660](https://github.com/chriso/validator.js/pull/660))
- Fixed a bug in credit card validation
([#670](https://github.com/chriso/validator.js/pull/670))
- New locales
([#647](https://github.com/chriso/validator.js/pull/647),
[#667](https://github.com/chriso/validator.js/pull/667),
Expand Down
2 changes: 1 addition & 1 deletion lib/isURL.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function checkHost(host, matches) {

function isURL(url, options) {
(0, _assertString2.default)(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
2 changes: 1 addition & 1 deletion validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@

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
Loading

0 comments on commit 812bf04

Please sign in to comment.