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" )