Skip to content

Commit

Permalink
Tests: remove empty paragraph from the end of normalized html string.
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering-this committed Jun 17, 2019
1 parent db36daf commit 50dd8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/editable/insertion.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,6 @@
}

function normalizeHtml( html ) {
return html.toLowerCase().replace( /(<p>(<br>|&nbsp;)<\/p>|<br>|\s|\u200B)/g, '' );
return html.toLowerCase().replace( /(<p>(<br>|&nbsp;)<\/p>|<p><\/p>$|<br>|\s|\u200B)/g, '' );
}
} )();

0 comments on commit 50dd8c1

Please sign in to comment.