Add functional tests for matching substrings in field matchers and interpolating them into the corresponding field assignments. Check the following properties and use-cases: * Use-case 1: matching a portion of a date in a known format (YYY-MM-DD) and writing a comment-command to warp a posting date. Useful for credit cards. * Use-case 2: match a portion of a CSV field and use it as an account assignment. Useful for my byzantine setup with two separate ledgers cross-importing to each other. * Ensure bracketed portions of field matchers are captured. * Ensure bracketed portions of record matchers are captured. * Check match token numerical offset is relative to match group, not the whole rules file. * Check nested matches work. * Ensure match group token expansion works with or without surrounding text. Signed-off-by: Jonathan Dowland <jon@dow.land>
100 B
100 B
| 1 | 62 | 2022-12-15 | Zettle_*Robert W. Bell | liabilities:jon:expenses:snacks | £ 7.90 | £ 8.90 |
|---|