Merge branch 'main' of https://github.com/pangeachat/client into chats-show-when-loaded
This commit is contained in:
commit
20aed89edc
2 changed files with 2 additions and 4 deletions
|
|
@ -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],
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue