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

lines: support "rules" field for multiple sets of parsing regexes #463

Merged
merged 1 commit into from
Feb 26, 2023

Commits on Feb 26, 2023

  1. lines: support "rules" field for multiple sets of parsing regexes

    Sometimes companies use more than 1 format for line-parseable data. They
    may randomly generate invoices with e.g.
    1. Some extra columns that are used occasionally
    2. Rearrange columns order
    
    Such format changes may be too invasive to support parsing with e.g.
    multiple "line" regexes.
    
    This commit adds "rules" field support to the "lines" parser. It allows
    defining multiple sets or regexes ("start", "end", "line" & friends) for
    a single upper field.
    
    Usage of "rules" is optional. Backward compatibility wiht existing
    templates is preserved.
    
    Signed-off-by: Rafał Miłecki <[email protected]>
    Rafał Miłecki authored and bosd committed Feb 26, 2023
    Configuration menu
    Copy the full SHA
    3d41995 View commit details
    Browse the repository at this point in the history