Index: lib/typoFixer.js |
=================================================================== |
--- a/lib/typoFixer.js |
+++ b/lib/typoFixer.js |
@@ -129,6 +129,10 @@ |
let oldDomain = domain; |
if (!isIPAddress(domain)) |
{ |
+ // Remove . at end of domain for fully qualified domain names |
+ if (domain[domain.length - 1] == ".") |
+ domain = domain.substr(0, domain.length - 1); |
Wladimir Palant
2013/04/16 13:59:29
How about:
domain = domain.replace(/\.$/, "");
|
+ |
processTypedDomain(domain); |
let newDomain = getDomainCorrection(domain); |