diff --git a/app/assets/javascripts/app/lib/app_post/utils.js.coffee b/app/assets/javascripts/app/lib/app_post/utils.js.coffee index d9bbef762..933e8e7d6 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.js.coffee @@ -352,7 +352,7 @@ class App.Utils # gmail #
if !markers || !markers[0] - regex = new RegExp( "(
)" ) + regex = new RegExp( "(
)" ) if message.match( regex ) return message.replace( regex, "#{markerTemplate}\$1" ) diff --git a/public/assets/tests/html-utils.js b/public/assets/tests/html-utils.js index 1ebc4391c..b0911d8cd 100644 --- a/public/assets/tests/html-utils.js +++ b/public/assets/tests/html-utils.js @@ -653,6 +653,11 @@ test( "identify signature", function() { result = App.Utils.signatureIdentify( message, true ) equal( result, should ) + message = "
test 123

--no not match--

Bob Smith
lalala
" + should = "
test 123

--no not match--

Bob Smith
lalala
" + result = App.Utils.signatureIdentify( message, true ) + equal( result, should ) + message = "
test 123

--no not match--

Bob Smith
Am 24. Dezember 2015 um 07:45 schrieb kathrine <kathrine@example.com>:
lalala
" should = "
test 123

--no not match--

Bob Smith
Am 24. Dezember 2015 um 07:45 schrieb kathrine <kathrine@example.com>:
lalala
" result = App.Utils.signatureIdentify( message, true )