Changeset 33320
- Timestamp:
- 07/18/2015 11:41:25 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/word-count.js
r33299 r33320 58 58 ']' 59 59 ].join( '' ), 'g' ), 60 astralRegExp: /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, 60 61 wordsRegExp: /\S\s+/g, 61 62 charactersRegExp: /\S/g, … … 83 84 text = text.replace( this.settings.connectorRegExp, ' ' ); 84 85 text = text.replace( this.settings.removeRegExp, '' ); 86 } else { 87 text = text.replace( this.settings.astralRegExp, 'a' ); 85 88 } 86 89 -
trunk/tests/qunit/wp-admin/js/word-count.js
r33299 r33320 52 52 characters: 11, 53 53 all: 12 54 }, 55 { 56 message: 'Astrals.', 57 string: '\uD83D\uDCA9', 58 words: 1, 59 characters: 1, 60 all: 1 54 61 } 55 62 ], function( test ) {
Note: See TracChangeset
for help on using the changeset viewer.