From e75b3c96989d283a93ae9cf014e3a6e4e8ea30e2 Mon Sep 17 00:00:00 2001 From: Lucas Vidmar Date: Thu, 13 Jul 2023 00:24:05 -0300 Subject: [PATCH] adding more currencies --- grammar/ledger.ne | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar/ledger.ne b/grammar/ledger.ne index f280371..a4229e1 100644 --- a/grammar/ledger.ne +++ b/grammar/ledger.ne @@ -41,11 +41,11 @@ newline: { match: '\n', lineBreaks: true }, ws: /[ \t]+/, number: { match: /-?[0-9.,]+/, value: (s:string) => s.replace(/,/g, '') }, - currency: /[$£₤€₿₹¥¥₩Р₽₴₫]/, // Note: Р != P + currency: /[$£₤€₳₿₹¥¥₩Р₱₽₴₫]/, // Note: Р != P reconciled: /[!*]/, comment: { match: /[;#|][^\n]+/, value: (s:string) => s.slice(1).trim() }, assertion: {match: /==?\*?/}, - account: { match: /[^$£₤€₿₹¥¥₩Р₽₴₫;#|\n]+/, value: (s:string) => s.trim() }, + account: { match: /[^$£₤€₳₿₹¥¥₩Р₱₽₴₫;#|\n]+/, value: (s:string) => s.trim() }, }, alias: { account: { match: /[a-zA-Z0-9: ]+/, value: (s:string) => s.trim() },