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

handle fields that do not have a value splitter #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 8, 2022

  1. handle fields that do not have a value splitter

    By prepending an optional, non-capturing field splitter to our scanning regexp
    we ensure that a valueless key is fully consumed, preventing a multibyte field
    splitter from partially leaking into the next key.
    
    Correctly parses out `k1` => `v1` and `k2` => `v2` from any of the following
    sequences using the field splitter `__`:
    
        missing__k1=v1__k2=v2
        k1=v1__missing__k2=v2
        k1=v1__k2=v2__missing
    
    Co-authored-by: Tom Gregory <[email protected]>
    yaauie and Tom Gregory committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    b7d3c2e View commit details
    Browse the repository at this point in the history