Skip to content

Commit e1899e0

Browse files
committed
;doc:csv:if:field matchers: clarify
1 parent 92ea671 commit e1899e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hledger/hledger.m4.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4084,9 +4084,9 @@ When using these, there's two things to be aware of:
40844084
the whole record matcher sees instead: `2023-01-01,Acme, Inc. ,1,000`
40854085

40864086
2. Field matchers expect either a CSV field number, or a [CSV field name](#field-names) declared with [`fields`](#fields-list).
4087-
(Don't use a hledger field name here, unless it is also a CSV field name.)
4088-
A non-CSV field name will cause the matcher to match against `""` (the empty string),
4089-
and does not raise an error, allowing easier reuse of common rules with different CSV files.
4087+
Anything else will cause it to match against the empty string, and probably fail silently
4088+
(this makes it easier to reuse common rules with different CSV files).
4089+
Don't use a hledger field name here (see [CSV fields and hledger fields](#csv-fields-and-hledger-fields)).
40904090

40914091
You can also prefix a matcher with `!` (and optional space) to negate it.
40924092
Eg `! whole foods`, `! %3 whole foods`, `!%description whole foods` will match if "whole foods" is NOT present.

0 commit comments

Comments
 (0)