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:
Ella Iseulde Van Dorpe
2015-07-16 09:44:43 +00:00
parent 4b975d8278
commit 129a3affe5
3 changed files with 53 additions and 4 deletions
+9 -2
View File
@@ -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 ) {