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

Newline breaks word count #8

Closed
ShowMeBillyJo opened this issue Sep 6, 2011 · 0 comments
Closed

Newline breaks word count #8

ShowMeBillyJo opened this issue Sep 6, 2011 · 0 comments

Comments

@ShowMeBillyJo
Copy link

After fixing demo.html to count words on #demo2 (see issue 7), I tried to test. This value correctly counts 11 words:

one two 3  four five.     6666. seven. eight. nine. 10. eleven.

However, this value only counts 10:

one two 3  four five.     6666.
seven. eight. nine. 10. eleven.

I believe the default value for wordSeparator should be '\s' (any white space). This means the strictMax truncation would have to be modified to maintain the original white space up to maxCount.

aaronrussell added a commit that referenced this issue Jun 17, 2013
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

No branches or pull requests

2 participants