Skip to content

Commit

Permalink
Fix problem with astriks symbol as bulleted list in paste from word.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Samsel committed Sep 13, 2017
1 parent bd3ef73 commit f11a4b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/pastefromword/filter/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,8 @@
symbol = element.attributes[ 'cke-symbol' ];

element.forEach( function( node ) {
if ( !removed && node.value.match( symbol.replace( ')', '\\)' ).replace( '(', '' ) ) ) {
// Changing `match` -> `indexOf`, symbol is String not RegExp (#877).
if ( !removed && node.value.indexOf( symbol ) > -1 ) {

node.value = node.value.replace( symbol, '' );

Expand Down

0 comments on commit f11a4b5

Please sign in to comment.