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 d987c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -511,4 +511,4 @@
}
})("addEventListener","DOMContentLoaded");

})(this);
})(this);

0 comments on commit d987c1c

Please sign in to comment.