Skip to content

A local-first personal finance app

Support arbitrary currency symbols in expressions (#602)

Jed Fox799f123ef299
diff --git a/packages/loot-core/src/shared/arithmetic.js b/packages/loot-core/src/shared/arithmetic.js
index 2c532378ca..4c6453103a 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);
}