From 418ed80a8c0ec1b779b065f526b6ad52bbf9ac22 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Mon, 4 Aug 2025 15:15:38 -0700 Subject: [PATCH] container: hledger-flow: ethereum-based: support non-alpha chars (currency) - Fixes broken import of any tx that contains non-alpha character(s) in its currency (digits, etc.) * Currencies may now contain any character(s) supported by hledger --- .../ethereum-based/ethereum-based-shared.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container/src/hledger-flow/accounts/blockchain-explorers/ethereum-based/ethereum-based-shared.rules b/container/src/hledger-flow/accounts/blockchain-explorers/ethereum-based/ethereum-based-shared.rules index ef97750..040e173 100644 --- a/container/src/hledger-flow/accounts/blockchain-explorers/ethereum-based/ethereum-based-shared.rules +++ b/container/src/hledger-flow/accounts/blockchain-explorers/ethereum-based/ethereum-based-shared.rules @@ -22,7 +22,7 @@ date-format %Y-%m-%d %H:%M:%S description %date +0000 account1 assets:%account_name:%subaccount_name:%blockchain:%symbol -amount %amount_ %symbol +amount %amount_ "%symbol" comment blockchain:%blockchain, type:%type, block:%block_number, blockid:%block_hash, index:%tx_index, method:%method_id, subaccount_address:%subaccount_address, from_address:%from_address, to_address:%to_address, txid:%tx_hash, direction:%direction @@ -39,7 +39,7 @@ if %token_id [0-9] # Subtract when sending OUT if %direction ^OUT$ - amount -%amount_ %symbol + amount -%amount_ "%symbol" # Default transfers as equity accounts if %direction ^IN$