From 36d99e1da368c62a554179f2c5b35b7709dfd185 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Thu, 6 Jun 2024 18:34:36 -0700 Subject: [PATCH] hledger-flow: ally: regex anchor for Direction --- container/src/hledger-flow/accounts/ally/ally-shared.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/src/hledger-flow/accounts/ally/ally-shared.bash b/container/src/hledger-flow/accounts/ally/ally-shared.bash index 59cf70c..971fa47 100755 --- a/container/src/hledger-flow/accounts/ally/ally-shared.bash +++ b/container/src/hledger-flow/accounts/ally/ally-shared.bash @@ -57,7 +57,7 @@ function parse() printf $4 OFS # type printf $5 OFS # description - printf ($4 ~ /Withdrawal/ ? "OUT" : "IN") OFS # Direction + printf ($4 ~ /^Withdrawal$/ ? "OUT" : "IN") OFS # Direction printf global_subaccount printf "\n"