diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/predicate.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/predicate.cc b/src/predicate.cc index df0aee13..3402ca3b 100644 --- a/src/predicate.cc +++ b/src/predicate.cc @@ -79,6 +79,9 @@ string args_to_predicate_expr(value_t::sequence_t::const_iterator begin, arg == "payee" || arg == "PAYEE") { arg = string("@") + (*++begin).as_string(); } + else if (arg == "code" || arg == "CODE") { + arg = string("#") + (*++begin).as_string(); + } else if (arg == "note" || arg == "NOTE") { arg = string("&") + (*++begin).as_string(); } @@ -123,6 +126,11 @@ string args_to_predicate_expr(value_t::sequence_t::const_iterator begin, found_specifier = true; consumed = true; break; + case '#': + buf << "(code =~ /"; + found_specifier = true; + consumed = true; + break; case '=': buf << "("; found_specifier = true; |