From bc913e4d7aad04f0a7e12610c74d3fc0b363743e Mon Sep 17 00:00:00 2001 From: ggurdin Date: Tue, 30 Jul 2024 13:54:05 -0400 Subject: [PATCH 1/2] bump version number --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 1e75fc4b5..2f2d47699 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,7 +6,7 @@ description: Learn a language while texting your friends. # Pangea# publish_to: none # On version bump also increase the build number for F-Droid -version: 1.21.1+3533 +version: 1.21.2+3534 environment: sdk: ">=3.0.0 <4.0.0" From cd6a90473545794ffaaed1b392edb9f132ae266c Mon Sep 17 00:00:00 2001 From: ggurdin Date: Wed, 31 Jul 2024 13:36:36 -0400 Subject: [PATCH 2/2] prevent single character input from disapearing --- lib/pangea/models/igc_text_data_model.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pangea/models/igc_text_data_model.dart b/lib/pangea/models/igc_text_data_model.dart index fe052a5ec..5f32f92d1 100644 --- a/lib/pangea/models/igc_text_data_model.dart +++ b/lib/pangea/models/igc_text_data_model.dart @@ -140,8 +140,6 @@ class IGCTextData { matches.removeAt(matchIndex); for (final match in matches) { - final matchOffset = match.match.offset; - final matchLength = match.match.length; match.match.fullText = originalInput; if (match.match.offset > pangeaMatch.match.offset) { match.match.offset += replacement.length - pangeaMatch.match.length; @@ -305,7 +303,7 @@ class IGCTextData { // create a pointer to the current index in the original input // and iterate until the pointer has reached the end of the input int currentIndex = 0; - while (currentIndex < originalInput.characters.length - 1) { + while (currentIndex < originalInput.characters.length) { // check if the pointer is at a match, and if so, get the index of the match final int matchIndex = matchRanges.indexWhere( (range) => currentIndex >= range[0] && currentIndex < range[1],