pieroxy / lz-string

LZ-based compression algorithm for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specific string seems to break algorithm

rubixibuc opened this issue · comments

Compressing "http://apple.com" and then decompressing it returns null instead of the original uncompressed string.

Confirmed behavior on the demo page.

Did you figure out what was wrong?

Did you figure out what was wrong?

This string definitely broke my service, but because I was using .compress(). Something about the way it compressed the string prevented Redis from being able to save and retrieve it as a key value. Once I switched to the UTF16 version it worked.

Thanks for the info. I need to make the doc clearer.