Skip to content

Conversation

@atnbueno
Copy link

  • Was the /(< ([^>]+)<)/g regex trying to delete HTML tags? If so, I fixed it
  • The two last replacements do the same as .trim()
  • With normalize+replace words with diacritics are counted properly. Not perfect, but usually enough for a few languages.

Fixes #13 and #14 (and not only for Spanish)

* Was the `/(< ([^>]+)<)/g` regex trying to delete HTML tags? If so, I fixed it
* The two last replacements do the same as `.trim()`
* With `normalize`+`replace` words with diacritics are counted properly. Not perfect, but usually enough for a few languages.
Base automatically changed from master to main February 19, 2021 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not counting HTML tags?

1 participant