Skip to content

Commit

Permalink
Merge pull request #1 from derflocki/wp-scheme-fix
Browse files Browse the repository at this point in the history
fixed root_domain regex, fixes getify#98
  • Loading branch information
derflocki committed Oct 31, 2014
2 parents 14b52d0 + 5859a04 commit 79675d6
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 79675d6

Please sign in to comment.