Skip to content

Quote configurable delimiter character, not just commas #102

@DivineDominion

Description

@DivineDominion

SwiftCSV/SwiftCSV/CSV.swift

Lines 111 to 117 in 048a1d3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions