mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Editor: word count: exclude more characters
Also only exclude these characters for the `words` type. They should be counted for other types. Add the ASCIIOnly option to the uglify config to preserve escaped unicode characters. See #30966. Fixes #27391. git-svn-id: https://develop.svn.wordpress.org/trunk@33292 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -33,9 +33,16 @@
|
||||
},
|
||||
{
|
||||
message: 'Punctuation.',
|
||||
string: 'It\'s two three... 4?',
|
||||
string: 'It\'s two three \u2026 4?',
|
||||
words: 3,
|
||||
characters: 11,
|
||||
characters: 15,
|
||||
all: 19
|
||||
},
|
||||
{
|
||||
message: 'Em dash.',
|
||||
string: 'one\u2014two--three',
|
||||
words: 3,
|
||||
characters: 14,
|
||||
all: 14
|
||||
}
|
||||
], function( test ) {
|
||||
|
||||
Reference in New Issue
Block a user