From c90f085f58873c16df53ba35293dceb78218d801 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 13 Apr 2015 15:51:55 -0400 Subject: [PATCH] this fixes https://github.com/chrisaljoudi/uBlock/issues/1251 --- src/js/uritools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/uritools.js b/src/js/uritools.js index a79484b5d..fe905f301 100644 --- a/src/js/uritools.js +++ b/src/js/uritools.js @@ -49,7 +49,7 @@ var reRFC3986 = /^([^:\/?#]+:)?(\/\/[^\/?#]*)?([^?#]*)(\?[^#]*)?(#.*)?/; // Derived var reSchemeFromURI = /^[^:\/?#]+:/; var reAuthorityFromURI = /^(?:[^:\/?#]+:)?(\/\/[^\/?#]+)/; -var reCommonHostnameFromURL = /^https?:\/\/([0-9a-z_][0-9a-z._-]+)\//; +var reCommonHostnameFromURL = /^https?:\/\/([0-9a-z_][0-9a-z._-]*[0-9a-z])\//; // These are to parse authority field, not parsed by above official regex // IPv6 is seen as an exception: a non-compatible IPv6 is first tried, and