From 4aaf9d027208a3e88dfd5b2d68e299d2c7008c3d Mon Sep 17 00:00:00 2001 From: Borys Levytskyi Date: Sun, 12 Apr 2015 22:14:34 +0300 Subject: [PATCH] Improved hash url docoding --- src/js/app/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/app/services.js b/src/js/app/services.js index 62ca170..9bf6f9f 100644 --- a/src/js/app/services.js +++ b/src/js/app/services.js @@ -9,7 +9,7 @@ app.set('hash', function () { return { encodeHash: function(string) { - return encodeURI(string.trim()).replace(/\s/g,','); + return encodeURI(string.trim().replace(/\s/g,',')); }, decodeHash: function(hashValue) { return decodeURI(hashValue).replace(/^\#/, '').replace(/,/g,' ');