Closed mamirix closed 3 years ago
"Mohib" is different than "mohib", so you must use enableCaseSensitive: true to work like you want. If you're already using enableCaseSensitive: true then it's a bug and I'll work on it tonight. Thank you.
Actually, you must use enableCaseSensitive: false (its default value is false). I now it's confusing, I'll rework this in the next update.
Yes, you're right. The problem is the if statement
it's not matching for first word in text
. I believe the error is caused by the statement in line 80 in highlight_text.dart. strIndex should be compared to ">= 0"
if (strIndex > 0) bindedText = bindedText.replaceRange(strIndex, strIndex + word.length, '${words.keys.toList().indexOf(word)}');