From f2f4569e59ecd0ba728a54b55e0e94cb24176d88 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