marmelroy / PhoneNumberKit

A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift 4 Compilation error

ArunPrasanth-R opened this issue · comments

I'm getting the below mentioned error in the file NSRegularExpression+Swift.swift, line 16.
'distance(from:to:)' is unavailable: Any String view index conversion can fail in Swift 4; please unwrap the optional indices

Closing this issue because we are now using Swift 5. See #263