diff --git a/lib/hosts.js b/lib/hosts.js index da10edf..2a88e95 100644 --- a/lib/hosts.js +++ b/lib/hosts.js @@ -6,7 +6,7 @@ const maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : '' const maybeEncode = (arg) => arg ? encodeURIComponent(arg) : '' const formatHashFragment = (f) => f.toLowerCase() .replace(/^\W+/g, '') // strip leading non-characters - .replace(/\W+$/g, '') // strip trailing non-characters + .replace(/(?