#27391 closed defect (bug) (fixed)
Editor: Word count should exclude ellipsis
Reported by: | bassgang | Owned by: | iseulde |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | minor | Version: | 2.3 |
Component: | Editor | Keywords: | has-patch |
Focuses: | javascript | Cc: |
Description
The "Word count" shown below the post editor counts a ellipsis "…" as a word at the moment. As a ellipsis is more punctation than a word, it should be excluded from the "Word count".
Steps to reproduce:
- Add a new post
- Add a ellipsis (Mac: Alt + .) "…"
- See "Word count"
I think this is a good first bug since the fix should be relatively easy. Extend the "clean" regular expression with ellipsis match in https://core.trac.wordpress.org/browser/trunk/src/wp-admin/js/word-count.js#L8.
Attachments (2)
Change History (7)
#2
@
11 years ago
- Keywords dev-feedback ui-feedback reporter-feedback removed
- Severity changed from normal to minor
- Version changed from trunk to 2.3
Related: #27386
#3
@
10 years ago
- Keywords has-patch added; 2nd-opinion removed
- Milestone changed from Awaiting Review to Future Release
See #30966. The patch there would exclude ranges of unicode characters.
Note: See
TracTickets for help on using
tickets.
In this case; I think ellipsis does fall under Unicode characters category. So here the question is do we have to handle all the Unicodes and put a Regex for that or Unicodes are to be counted as a word.