Skip to content

Whitespaces in INI files #30

Description

@tencnivel

I don't understand why Issue #12 was closed.

Why can't we just strip the values as in the following? It seems to work fine even with comma separated values

function ConfParser.parse_line(line::String)
    parsed   = String[]
    splitted = split(line, ",")
    for raw = splitted
        if occursin(r"\S+", raw)
            clean = strip(raw)
            push!(parsed, clean)
        end
    end
    parsed
end 

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