Skip to content

Commit

Permalink
Empty area check regex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed Jul 3, 2014
1 parent c33bc6c commit a0e2d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/composer.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@

isEmpty: function() {
var innerHTML = this.element.innerHTML.toLowerCase();
return (/^(\s|<br><\/br>|<p>|<\/p>)*$/i).test(innerHTML) ||
return (/^(\s|<br>|<\/br>|<p>|<\/p>)*$/i).test(innerHTML) ||
innerHTML === "" ||
innerHTML === "<br>" ||
innerHTML === "<p></p>" ||
Expand Down

0 comments on commit a0e2d83

Please sign in to comment.