rapierorg / telegram-bot-swift

Telegram Bot SDK for Swift (unofficial)
https://github.com/rapierorg/telegram-bot-swift/wiki
Apache License 2.0
375 stars 63 forks source link

Fix scanUpToString returning nil on Linux #122

Closed zmeyc closed 3 years ago

zmeyc commented 3 years ago

Behavior of scanUpToString differs from scanUpToString(into:). The former returns nil when argument is "", the latter returns rest of the string.