[wp-trac] [WordPress Trac] #27391: Editor: Word count should exclude ellipsis

WordPress Trac noreply at wordpress.org
Thu Mar 13 08:54:34 UTC 2014


#27391: Editor: Word count should exclude ellipsis
--------------------------+-----------------------------
 Reporter:  bassgang      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 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"

 [[Image(editor_word_count_ellipsis.png)]]

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27391>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list