We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In MatchResult.swift 103~108:
MatchResult.swift
private func utf16Range(from range: NSRange) -> Range<String.UTF16Index>? { guard range.location != NSNotFound else { return nil } let start = string.startIndex.advanced(by: range.location) let end = start.advanced(by: range.length) return start..<end }
106:21: 'advanced(by:)' is unavailable 'advanced(by:)' was obsoleted in Swift 4.0
The text was updated successfully, but these errors were encountered:
Solution:
private func utf16Range(from range: NSRange) -> Range<String.UTF16Index>? { guard range.location != NSNotFound else { return nil } let start = string.index(string.startIndex, offsetBy: range.location) let end = string.index(start, offsetBy: range.length) return start..<end }
It works well for me.
Sorry, something went wrong.
Fixed by #57.
No branches or pull requests
In
MatchResult.swift
103~108:106:21:
'advanced(by:)' is unavailable
'advanced(by:)' was obsoleted in Swift 4.0
The text was updated successfully, but these errors were encountered: