Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not counting HTML tags? #13

Open
atnbueno opened this issue Mar 13, 2018 · 1 comment · May be fixed by #15
Open

Not counting HTML tags? #13

atnbueno opened this issue Mar 13, 2018 · 1 comment · May be fixed by #15

Comments

@atnbueno
Copy link

Is the /(< ([^>]+)<)/g regex trying to delete HTML tags so they are not counted as words? Or its it doing something else I don't see?

Also: .replace(/^\s\s*/, '').replace(/\s\s*$/, '') does the same as .trim()

@atnbueno atnbueno linked a pull request Mar 13, 2018 that will close this issue
@atnbueno
Copy link
Author

I just did a PR (see #15) with a fix (assuming HTML tags removing was the original intention)

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 a pull request may close this issue.

1 participant