From 82d834e348fcb32c8f74bbe9f7dcc62129a1dc46 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 11 May 2019 10:41:47 -0400 Subject: [PATCH] remove some extra newlines that tend to appear in code blocks --- fun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fun.go b/fun.go index 72551e4..2c93a47 100644 --- a/fun.go +++ b/fun.go @@ -156,7 +156,7 @@ func herdofemus(noise string) []Emu { var re_bolder = regexp.MustCompile(`(^|\W)\*\*([\w\s,.!?']+)\*\*($|\W)`) var re_italicer = regexp.MustCompile(`(^|\W)\*([\w\s,.!?']+)\*($|\W)`) -var re_bigcoder = regexp.MustCompile("```((?s:.*?))```") +var re_bigcoder = regexp.MustCompile("\n?```\n?((?s:.*?))\n?```\n?") var re_coder = regexp.MustCompile("`(.*?)`") func markitzero(s string) string {