Closed kometenstaub closed 2 years ago
Not sure how to implement that correctly, but maybe the regexes used by the better word count plugin helps with this issue, since it considers non-ascii characters correctly for the word count? 🤔
https://github.com/lukeleppan/better-word-count/blob/master/src/data/stats.ts
Addressed in 0.0.5
It works well now, thank you so much! :heart:
I've noticed that it doesn't highlight the word if there is a special character (
é
,à
,ü
) at the beginning or end of a word.I looked at the code and it does get the word correctly, but it doesn't apply the
span
with the CSS class to it.The issue seems to be the
\b
in the regular expression: