From 799f123ef29996e16d4c7d7d1caacea539887759 Mon Sep 17 00:00:00 2001
From: Jed Fox <git@jedfox.com>
Date: Tue, 31 Jan 2023 15:48:05 -0500
Subject: [PATCH] Support arbitrary currency symbols in expressions (#602)

---
 packages/loot-core/src/shared/arithmetic.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/packages/loot-core/src/shared/arithmetic.js b/packages/loot-core/src/shared/arithmetic.js
index 2c532378c..4c6453103 100644
--- a/packages/loot-core/src/shared/arithmetic.js
+++ b/packages/loot-core/src/shared/arithmetic.js
@@ -36,8 +36,7 @@ function parsePrimary(state) {
     next(state);
   }
 
-  // TODO: Support currency symbols better
-  if (char(state) === '$') {
+  if (/\p{Sc}/u.test(char(state))) {
     next(state);
   }
 
-- 
GitLab