Skip to content

Commit

Permalink
Fix a bug in the UriComponent-safe decompression
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Grimaud committed Mar 25, 2015
1 parent d91bba6 commit 83d7b59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions libs/lz-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ var LZString = {
decompressFromEncodedURIComponent:function (input) {
if (input == null) return "";
if (input == "") return null;
input = input.replace(/ /g, "+");
return LZString._decompress(input.length, 32, function(index) { return LZString._getBaseValue(LZString._keyStrUriSafe, input.charAt(index)); });
},

Expand Down
2 changes: 1 addition & 1 deletion libs/lz-string.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions tests/lz-string-spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 83d7b59

Please sign in to comment.