diff --git a/src/domutil.js b/src/domutil.js index bbfe9e1..15d23bc 100644 --- a/src/domutil.js +++ b/src/domutil.js @@ -35,6 +35,9 @@ function isValidURL(url) { if (lastDot < 1) { return false; } + if (url.hostname.slice(lastDot + 1).match(/^[\d]+$/)) { + return false; + } if (url.hostname.slice(lastDot) === '.local') { return false; }