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.
<rdar://problem/17906689>
Created attachment 235985 [details] patch
http://trac.webkit.org/changeset/172005