You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix a crash that occurs when the number of fields is small (#92). Thanks a72 for reporting this issue!
Fix CSV Deprecated compiler warning (#93). Thanks robwithhair for reporting this issue!
Breaking change
In 2.4.2 and later versions, If you specify a key that does not have a value in subscript, an empty string is returned. For example,
letcsvString="key1,key2\nvalue1" // There is only one field in the second line.
letcsv=try!CSVReader(string: csvString, hasHeaderRow:true)
csv.next()letvalue2=csv["key2"] // Change point: Formerly nil, now "" is returned.
letvalue3=csv["key3"] // In this case, nil will be returned.