From 1f063db8087335d6ea18a4832690c4fabaf574e5 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 11 Feb 2016 16:31:49 +0100 Subject: [PATCH] Improved App.Utils.signatureIdentify(), take messages with more then 8 lines (not 10 lines). --- app/assets/javascripts/app/lib/app_post/utils.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_post/utils.coffee b/app/assets/javascripts/app/lib/app_post/utils.coffee index 24c4c475c..04af75876 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.coffee @@ -253,7 +253,7 @@ class App.Utils # count lines, if we do have lower the 10, ignore this textToSearchInLines = textToSearch.split("\n") if !test - return message if textToSearchInLines.length < 10 + return message if textToSearchInLines.length < 8 quote = (str) -> (str + '').replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&") @@ -419,7 +419,7 @@ class App.Utils # search for zammad #
if !markers || !markers[0] - regex = new RegExp( "(
)" ) + regex = new RegExp( "(
)" ) if message.match( regex ) return message.replace( regex, "#{markerTemplate}\$1" )