Improve regular expression
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-07-20 17:44:46 +02:00
parent f61e3541fb
commit 28f61a3099
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ android {
create("development") {
dimension = "default"
applicationIdSuffix = ".debug"
// signingConfig = signingConfigs.getByName("debug")
signingConfig = signingConfigs.getByName("debug")
}
create("publish") {
dimension = "default"

View File

@@ -27,7 +27,7 @@ Future<double?> extractTotalFromBill(Uint8List imgBuff) async {
// Check for highest amount on invoice
final regexp = RegExp(
r'([0-9]+([ ]*(\\.|,)[ ]*[0-9]{1,2}){0,1})[ \\t\\n]*(EUR|eur|€)',
r'([0-9]+([ ]*(\\.|,)[ ]*[0-9]{1,2}){0,1})([ \\t\\n]*(EUR|eur|€)|E)',
multiLine: true,
caseSensitive: false,
);