should allow - in bold and ital
Ted Unangst tedu@tedunangst.com
Wed, 15 May 2019 14:39:33 -0400
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
fun.go
→
fun.go
@@ -147,8 +147,8 @@ }
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("`([^`]*)`")