malczak / hashids

Hashids, ported for Swift (http://www.hashids.org)
MIT License
110 stars 35 forks source link

Fix slice start index handling. #7

Closed addie9000 closed 8 years ago

addie9000 commented 8 years ago

It seems that Slice in Swift 2.0 does not always begin index with 0. Thus, decode stops with "index out of range" error. This pull request will fix it.

malczak commented 8 years ago

Thanks for pointing this out