|
func enquoteContentsIfNeeded(cell: String) -> String { |
|
// Add quotes if value contains a comma |
|
if cell.contains(",") { |
|
return "\"\(cell)\"" |
|
} |
|
return cell |
|
} |
The current implementation of the enquote helper is still hard-coded to ",", but we now support different delimiters.