xcode backward compatibility fixes

- moved back to single line string literal
- fixed calculating string lenght
This commit is contained in:
Ilya Puchka
2017-10-08 00:38:49 +02:00
parent 7688326204
commit 97ab3cf31d
2 changed files with 14 additions and 8 deletions

View File

@@ -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
}