krisk / fuse-swift

A lightweight fuzzy-search library, with zero dependencies
MIT License
934 stars 112 forks source link

Improvement/crash fixes #13

Closed crtgregoric closed 6 years ago

crtgregoric commented 6 years ago

Added fixes for issues that caused quite frequent crashes in our app.

Removed forced position unwrapping. Added check whether startIndex offset by position is still between bounds (less than endIndex). Added check for ... range iteration so that start is less than finish.