xcode backward compatibility fixes
- moved back to single line string literal - fixed calculating string lenght
This commit is contained in:
@@ -107,7 +107,7 @@ class Scanner {
|
||||
let result = content.substring(to: index)
|
||||
|
||||
if returnUntil {
|
||||
range = range.lowerBound..<originalContent.index(range.upperBound, offsetBy: until.count)
|
||||
range = range.lowerBound..<originalContent.index(range.upperBound, offsetBy: until.length)
|
||||
content = substring.substring(from: until.endIndex)
|
||||
return result + until
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user