gritzko / swarm

JavaScript replicated model (M of MVC) library
http://swarmdb.net/
MIT License
2.68k stars 97 forks source link

Fix bug in UUID compression. #92

Closed lambdafu closed 6 years ago

lambdafu commented 6 years ago

Hi! I found this bug in the compression of two UUIDs. If the identifier (timestamp) is equal to the default, the current code only outputs the origin without separator, which is then misparsed as identifier (timestamp). My patch covers the case and adds a test.