summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app')
-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 3e999ecc..6521ef43 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\/\d+$/.exec(getDocumentHash())[1];
+ return /\/(.+)\/mail\/[A-Z0-9]+$/.exec(getDocumentHash())[1];
}
return hash.substring(2);
}
@@ -41,11 +41,11 @@ define([], function () {
}
function hasMailIdent() {
- return getDocumentHash().match(/mail\/\d+$/);
+ return getDocumentHash().match(/mail\/[A-Z0-9]+$/);
}
function getMailIdent() {
- return /mail\/(\d+)$/.exec(getDocumentHash())[1];
+ return /mail\/([A-Z0-9]+)$/.exec(getDocumentHash())[1];
}
return {