Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lines: support multiple RegEx-es in lines entries
So far "first_line", "line" and "last_line" could contain a single RegEx only. Some invoices have lines that use more than one format. To simplify parsin them allow all 3 entries to contain list of RegEx-es. Example: fields: lines: parser: lines start: Item\s+Discount\s+Price$ end: \s+Total line: - Items group:\s+(?P<group>.+) - (?P<description>.+)\s+(?P<discount>\d+.\d+)\s+(?P<price>\d+\d+) Signed-off-by: Rafał Miłecki <[email protected]>
- Loading branch information