So I just noticed it won't catch instances where there's non-whitespace, non-alphabetic character right before the word. ie "Armansky won't be caught because the kindle would highlight the " as well as the word. Guess that's more regex work for me haha
Edit: now that I think about it, I think quotes are the only valid case for this. I'm not going to attempt to catch typos like forgetting a space after a period or comma. Nothing else coming before the word would make sense other than a quote of some type so guess i'll just make it check for those as well.
Edit2: I guess catching everything until the previous whitespace is another easy option. That way if it is a typo, people can still use it.. Decisions decisions.
Edit3: I decided to go with the anything that's connected to the word before up until a whitespace. If someone gives me good reason to change this, I will.
Last edited by szarroug3; 09-02-2018 at 01:04 AM.
|