should allow - in bold and ital

This commit is contained in:
Ted Unangst 2019-05-15 14:39:33 -04:00
parent 647aef3027
commit 6ab3c1d07d
1 changed files with 2 additions and 2 deletions

4
fun.go
View File

@ -147,8 +147,8 @@ func herdofemus(noise string) []Emu {
return emus
}
var re_bolder = regexp.MustCompile(`(^|\W)\*\*([\w\s,.!?']+)\*\*($|\W)`)
var re_italicer = regexp.MustCompile(`(^|\W)\*([\w\s,.!?']+)\*($|\W)`)
var re_bolder = regexp.MustCompile(`(^|\W)\*\*([\w\s,.!?'-]+)\*\*($|\W)`)
var re_italicer = regexp.MustCompile(`(^|\W)\*([\w\s,.!?'-]+)\*($|\W)`)
var re_bigcoder = regexp.MustCompile("```\n?((?s:.*?))\n?```")
var re_coder = regexp.MustCompile("`([^`]*)`")