From 7a050d65c8fc9288a89c622100076d72b5f7a4b0 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 4 Jul 2015 05:15:30 -0700 Subject: [PATCH] bs/is/cf: recognise "debt..." as a synonym for "liabilities..." --- hledger-lib/Hledger/Data/Journal.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger-lib/Hledger/Data/Journal.hs b/hledger-lib/Hledger/Data/Journal.hs index f5ca55ac6..97f9feffb 100644 --- a/hledger-lib/Hledger/Data/Journal.hs +++ b/hledger-lib/Hledger/Data/Journal.hs @@ -212,9 +212,9 @@ journalAssetAccountQuery :: Journal -> Query journalAssetAccountQuery _ = Acct "^assets?(:|$)" -- | A query for Liability accounts in this journal. --- This is currently hard-coded to the case-insensitive regex @^liabilit(y|ies)(:|$)@. +-- This is currently hard-coded to the case-insensitive regex @^(debts?|liabilit(y|ies))(:|$)@. journalLiabilityAccountQuery :: Journal -> Query -journalLiabilityAccountQuery _ = Acct "^liabilit(y|ies)(:|$)" +journalLiabilityAccountQuery _ = Acct "^(debts?|liabilit(y|ies))(:|$)" -- | A query for Equity accounts in this journal. -- This is currently hard-coded to the case-insensitive regex @^equity(:|$)@.