aboutsummaryrefslogtreecommitdiffstats
path: root/webroot/.static/js
diff options
context:
space:
mode:
Diffstat (limited to 'webroot/.static/js')
-rw-r--r--webroot/.static/js/lxrng-funcs.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/webroot/.static/js/lxrng-funcs.js b/webroot/.static/js/lxrng-funcs.js
index 5da1ef9..24e956d 100644
--- a/webroot/.static/js/lxrng-funcs.js
+++ b/webroot/.static/js/lxrng-funcs.js
@@ -327,12 +327,14 @@ function load_content() {
return false;
}
var tree = location.hash.split('/', 1);
- tree = tree[0].split(/[+]/);
+ tree[0].match(/^(.+?)([+](.*)|)$/);
+ tree = RegExp.$1;
+
var ver = '';
- if (tree.length > 1) {
- ver = tree[1];
+ if (RegExp.$2) {
+ ver = RegExp.$3;
}
- tree = tree[0].replace(/^#/, '');
+ tree = tree.replace(/^#/, '');
var file = location.hash.replace(/^[^\/]*\/?/, '');
var line = file.split('#L');
if (line.length > 1) {