Skip to content

Commit

Permalink
Revert "Fix willTripSpaces to report false for no outer spaces on sty…
Browse files Browse the repository at this point in the history
…led text."

This reverts commit 0731689.

Upstream changes make this implementation no longer necessary.
  • Loading branch information
mkevins committed May 20, 2019
1 parent 95305c8 commit 2c8e9af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ export class RichText extends Component {

willTrimSpaces( html ) {
// regex for detecting spaces around html tags
const trailingSpaces = /^(\s+)<.+?>|<.+?>(\s+)$/g;
const trailingSpaces = /(\s+)<.+?>|<.+?>(\s+)/g;
const matches = html.match( trailingSpaces );
if ( matches && matches.length > 0 ) {
return true;
Expand Down

0 comments on commit 2c8e9af

Please sign in to comment.