The recently added isWordEndMatch method only works when the checked match has one word in it.
But if you have a multiple word match, it will find the first word break and then return that.
So the fix should be to search from the end of the string to find if we're at the end. We already matched everything up to the end as part of the finding process before that.
Created attachment 235985 [details]