From a0e2d83ce02b05eb4af7c7d3295f38512654c4c5 Mon Sep 17 00:00:00 2001 From: Oliver Pulges Date: Thu, 3 Jul 2014 14:41:58 +0300 Subject: [PATCH] Empty area check regex fix --- src/views/composer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/composer.js b/src/views/composer.js index fcc72da..f75e46d 100644 --- a/src/views/composer.js +++ b/src/views/composer.js @@ -110,7 +110,7 @@ isEmpty: function() { var innerHTML = this.element.innerHTML.toLowerCase(); - return (/^(\s|
<\/br>|

|<\/p>)*$/i).test(innerHTML) || + return (/^(\s|
|<\/br>|

|<\/p>)*$/i).test(innerHTML) || innerHTML === "" || innerHTML === "
" || innerHTML === "

" ||