Permalink
Browse files

fixes issue found by jshint

  • Loading branch information...
caphun committed Dec 7, 2016
1 parent 1e6ec38 commit afca031b4ce1cdc6e3ecbe88198f41b4835f81e3
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/mailcheck.js
  2. +1 −1 src/mailcheck.min.js
View
@@ -86,7 +86,7 @@ var Mailcheck = {
rtrn = true;
}
if(closestTopLevelDomain && closestTopLevelDomain != emailParts.topLevelDomain && emailParts.secondLevelDomain != '') {
if(closestTopLevelDomain && closestTopLevelDomain != emailParts.topLevelDomain && emailParts.secondLevelDomain !== '') {
// The email address may have a mispelled top-level domain; return a suggestion
closestDomain = closestDomain.replace(new RegExp(emailParts.topLevelDomain + "$"), closestTopLevelDomain);
rtrn = true;
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit afca031

Please sign in to comment.