pangeachat / client

Learn a language while texting your friends
https://krille-chan.github.io/fluffychat/
GNU Affero General Public License v3.0
1 stars 2 forks source link

Move away from using tokens to construct match spans #413

Open ggurdin opened 3 days ago

ggurdin commented 3 days ago

Currently we're using tokens to construct match spans in the input bar. This requires a call to the tokenize endpoint in the function justGetTokensAndAddThemToIGCTextData, to prevent the originalInput and the token offsets and length from being out-of-sync. We want to instead use the match data to construct these spans.