aboutsummaryrefslogtreecommitdiffstats
path: root/webroot/.static/js
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@lxr.linpro.no>2011-09-22 14:49:40 +0200
committerArne Georg Gleditsch <argggh@lxr.linpro.no>2011-09-22 14:49:40 +0200
commit84fc580e278aefda62c537a05661db8ae39e55e0 (patch)
tree71c2ce4cbd570e7523c6bf72d3c191c6e27d8af8 /webroot/.static/js
parentcd756357a261aec69995b42d1e8b8b47903e6706 (diff)
Make "+" a legal character in release strings.
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) {