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

Fix json detected as dbf when it starts with low ascii values #241

Merged
merged 1 commit into from
Jan 30, 2022

Commits on Jan 30, 2022

  1. Fix json detected as dbf when it starts with low ascii values

    Byte 0x09 represents ninth month in dbf header, but it is also the ascii
    value of <TAB>. This made dbf detection pass for json and txt files
    happening to contain these low ascii values at the start.
    This commit improves dbf detection to check for several null bytes in
    the input. json and txt files never contain null bytes.
    gabriel-vasile committed Jan 30, 2022
    Configuration menu
    Copy the full SHA
    2345dc1 View commit details
    Browse the repository at this point in the history