Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow delim and quotechar matching #1066

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Commits on Jan 4, 2023

  1. Disallow delim and quotechar matching

    Upon review of Parsers.Options validations ([ref](JuliaData/Parsers.jl#152)),
    @nickrobinson251, @Drvi, and I agree that this shouldn't be valid. The problem is that there's
    an ambiguity in the case of a _missing_ field vs. an empty quoted field vs. a quoted field
    with newlines. For example:
    
    ```julia
    a"b"c
    1"2"3   # normal row
    "2"3    # 1st field is missing, but ambiguous with 1st field as quoted `"2"`
    "1""2"3 # Also ambiguous because the 2nd quote escapes the 3rd, so value is `1"2`
    ```
    quinnj committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    a00e1ea View commit details
    Browse the repository at this point in the history