summaryrefslogtreecommitdiff
path: root/web-ui/app/js/page
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-11-17 17:25:34 -0200
committerGiovane <giovaneliberato@gmail.com>2015-11-17 17:25:57 -0200
commit591b6e9e3eb2df6c1814438358b29f5eff9d83e1 (patch)
tree4dad99433db92a386293737057fcdbd64c9a60cc /web-ui/app/js/page
parentc88514fdf18f39fb67101e3ea9741b3430f221b6 (diff)
Consider mail ident characters when parsing routes. #528
Diffstat (limited to 'web-ui/app/js/page')
-rw-r--r--web-ui/app/js/page/router/url_params.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web-ui/app/js/page/router/url_params.js b/web-ui/app/js/page/router/url_params.js
index 6521ef43..4fa11c6d 100644
--- a/web-ui/app/js/page/router/url_params.js
+++ b/web-ui/app/js/page/router/url_params.js
@@ -27,7 +27,7 @@ define([], function () {
function hashTag(hash) {
if (hasMailIdent(hash)) {
- return /\/(.+)\/mail\/[A-Z0-9]+$/.exec(getDocumentHash())[1];
+ return /\/(.+)\/mail\/[-\w]+$/.exec(getDocumentHash())[1];
}
return hash.substring(2);
}
@@ -41,11 +41,11 @@ define([], function () {
}
function hasMailIdent() {
- return getDocumentHash().match(/mail\/[A-Z0-9]+$/);
+ return getDocumentHash().match(/mail\/[-\w]+$/);
}
function getMailIdent() {
- return /mail\/([A-Z0-9]+)$/.exec(getDocumentHash())[1];
+ return /mail\/([-\w]+)$/.exec(getDocumentHash())[1];
}
return {