diff --git a/tests/core/editable/insertion.js b/tests/core/editable/insertion.js index 06e3827def1..bbec95b3309 100644 --- a/tests/core/editable/insertion.js +++ b/tests/core/editable/insertion.js @@ -271,6 +271,6 @@ } function normalizeHtml( html ) { - return html.toLowerCase().replace( /(
(
| )<\/p>|
|\s|\u200B)/g, '' );
+ return html.toLowerCase().replace( /(
(
| )<\/p>|
<\/p>$|
|\s|\u200B)/g, '' );
}
} )();