amayne / SwiftString

A comprehensive, lightweight string extension for Swift
MIT License
1.62k stars 141 forks source link

Better conditions for `between` #1

Closed Abizern closed 8 years ago

Abizern commented 8 years ago

Add documentation for between and handle the conditions where the two bookends are the same and the if there is no text between the bookends. Updated tests.

amayne commented 8 years ago

Looks good. Thanks @Abizern !