Improve regular expression
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -59,7 +59,7 @@ android {
|
|||||||
create("development") {
|
create("development") {
|
||||||
dimension = "default"
|
dimension = "default"
|
||||||
applicationIdSuffix = ".debug"
|
applicationIdSuffix = ".debug"
|
||||||
// signingConfig = signingConfigs.getByName("debug")
|
signingConfig = signingConfigs.getByName("debug")
|
||||||
}
|
}
|
||||||
create("publish") {
|
create("publish") {
|
||||||
dimension = "default"
|
dimension = "default"
|
||||||
|
@@ -27,7 +27,7 @@ Future<double?> extractTotalFromBill(Uint8List imgBuff) async {
|
|||||||
|
|
||||||
// Check for highest amount on invoice
|
// Check for highest amount on invoice
|
||||||
final regexp = RegExp(
|
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,
|
multiLine: true,
|
||||||
caseSensitive: false,
|
caseSensitive: false,
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user