lib/slack/smart-bot/comm/respond.rb in slack-smart-bot-1.12.9 vs lib/slack/smart-bot/comm/respond.rb in slack-smart-bot-1.13.0
- old
+ new
@@ -56,9 +56,10 @@
txt = ""
end
end
txt += (m + "\n")
txt[0] = '.' if txt.match?(/\A\s\s\s/) #first line of message in slack don't show spaces at the begining so we force it by changing first char
+ txt[0] = ". " if txt.match?(/\A\t/)
end
end
msgs << txt
msgs.flatten!
msgs.delete_if{|e| e.match?(/\A\s*\z/)}