allow a few more chars in bold
Ted Unangst tedu@tedunangst.com
Thu, 26 Sep 2019 10:31:53 -0400
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
fun.go
→
fun.go
@@ -324,8 +324,8 @@ }
honk.Noise = re_memes.ReplaceAllStringFunc(honk.Noise, repl) } -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?```\n?") var re_coder = regexp.MustCompile("`([^`]*)`") var re_quoter = regexp.MustCompile(`(?m:^> (.*)\n?)`)