don't eat too many newlines. need a real parser here.

This commit is contained in:
Ted Unangst 2019-05-11 21:50:39 -04:00
parent 994bf806b1
commit 4139190fc5
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -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("\n?```\n?((?s:.*?))\n?```\n?")
var re_bigcoder = regexp.MustCompile("```\n?((?s:.*?))\n?```")
var re_coder = regexp.MustCompile("`([^`]*)`")
func markitzero(s string) string {