From 23cc189e5378baf904060a2bfde60832b4cbd84f Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 20 Jul 2025 19:17:47 +0200 Subject: [PATCH] Fix date extraction --- moneymgr_mobile/lib/utils/ocr_utils.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moneymgr_mobile/lib/utils/ocr_utils.dart b/moneymgr_mobile/lib/utils/ocr_utils.dart index 5c47f66..5b65712 100644 --- a/moneymgr_mobile/lib/utils/ocr_utils.dart +++ b/moneymgr_mobile/lib/utils/ocr_utils.dart @@ -55,7 +55,7 @@ Future extractInfoFromBill({ for (final match in dateRegexp.allMatches(extractionResult.text)) { if (match.groupCount < 6) continue; - int year = int.tryParse(match.group(6)!) ?? currDate.year; + int year = int.tryParse(match.group(5)!) ?? currDate.year; try { final date = DateTime(