We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4f681 commit 57870bbCopy full SHA for 57870bb
LocMapper/Utilities/CSVParser.swift
@@ -35,7 +35,7 @@ class CSVParser {
35
36
/* fieldNames is ignored if hasHeader is true */
37
init(source str: String, startOffset: String.Index, separator: String, hasHeader: Bool, fieldNames: [String]?) {
38
- assert(startOffset < str.endIndex)
+ assert(startOffset <= str.endIndex)
39
assert(
40
!separator.isEmpty && separator.range(of: "\"") == nil && separator.rangeOfCharacter(from: CSVParser.newLinesCharacterSet) == nil && separator.unicodeScalars.count == 1,
41
"CSV separator string must not be empty, must contain a single unicode scalar and must not contain the double quote character or newline characters."
0 commit comments