bugfix: wrong regex in the space-dot format (#1017)

The regex for the "space-dot" format was incorrect.

When entering the amount on a schedule, the number was incorrectly read
(12.34 became 1234.00)
Strangely, it was not an issue with transactions...
This commit is contained in:
TheTrueCaligari
2023-05-10 16:54:33 +02:00
committed by GitHub
parent 8faa7bd68d
commit 655b677961
2 changed files with 7 additions and 1 deletions

View File

@@ -282,7 +282,7 @@ export function setNumberFormat({ format, hideFraction }) {
break;
case 'space-dot':
locale = 'dje';
regex = /[^-0-9,]/g;
regex = /[^-0-9.]/g;
separator = '.';
break;
case 'comma-dot':

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [TheTrueCaligari]
---
Bugfix: amounts for schedules incorrectly read in 'space-dot' format.