mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-25 16:51:25 -05:00
Improve the site-vars page regex
This commit is contained in:
parent
9191bf279a
commit
249fcb4f4b
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
var SiteVars = {
|
var SiteVars = {
|
||||||
page: location.href.replace(/https*:\/\/[^\/]*\//, '').replace(/(#|\?).*/, '')
|
page: location.href.replace(/^[^:]*:\/\/[^\/]*\//, '').replace(/(\/|#|\?).*/, '')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue