Improve the site-vars page regex

This commit is contained in:
Kevin MacMartin 2015-12-12 22:34:00 -05:00
parent 9191bf279a
commit 249fcb4f4b

View file

@ -1,4 +1,3 @@
var SiteVars = {
page: location.href.replace(/https*:\/\/[^\/]*\//, '').replace(/(#|\?).*/, '')
page: location.href.replace(/^[^:]*:\/\/[^\/]*\//, '').replace(/(\/|#|\?).*/, '')
};