-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
5 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters