mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2026-01-17 01:12:41 +01:00
Improved hash url docoding
This commit is contained in:
@@ -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,' ');
|
||||
|
||||
Reference in New Issue
Block a user