From 5859a042a9943a7137039b04b217f09fe12e5eb7 Mon Sep 17 00:00:00 2001 From: derflocki Date: Fri, 1 Aug 2014 02:00:05 +0200 Subject: [PATCH] fixed root_domain regex, fixes #98 --- LAB.src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LAB.src.js b/LAB.src.js index 99807cd..7ff05dc 100644 --- a/LAB.src.js +++ b/LAB.src.js @@ -16,7 +16,7 @@ // stateless variables used across all $LAB instances root_page = /^[^?#]*\//.exec(location.href)[0], - root_domain = /^\w+\:\/\/\/?[^\/]+/.exec(root_page)[0], + root_domain = /^[a-z][\w\+-\/]+\:\/\/\/?[^\/]+/.exec(root_page)[0], append_to = document.head || document.getElementsByTagName("head"), // inferences... ick, but still necessary