From 591b6e9e3eb2df6c1814438358b29f5eff9d83e1 Mon Sep 17 00:00:00 2001 From: Giovane Date: Tue, 17 Nov 2015 17:25:34 -0200 Subject: Consider mail ident characters when parsing routes. #528 --- web-ui/app/js/page/router/url_params.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web-ui/app') 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 { -- cgit v1.2.3