Skip to content

Commit

Permalink
fixed root_domain regex, fixes getify#98
Browse files Browse the repository at this point in the history
  • Loading branch information
derflocki committed Aug 1, 2014
1 parent 14b52d0 commit 5859a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LAB.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5859a04

Please sign in to comment.