discord: let . match \n (#147)
This commit is contained in:
parent
5cd28f6347
commit
b4a22f8570
1 changed files with 4 additions and 4 deletions
|
|
@ -3,10 +3,10 @@ package discord
|
|||
import "regexp"
|
||||
|
||||
var (
|
||||
boldRegex = regexp.MustCompile(`(?m)\*\*(.*?)\*\*`)
|
||||
italicRegex = regexp.MustCompile(`(?m)\*(.*?)\*`)
|
||||
underlineRegex = regexp.MustCompile(`(?m)__(.*?)__`)
|
||||
strikeThroughRegex = regexp.MustCompile(`(?m)~~(.*?)~~`)
|
||||
boldRegex = regexp.MustCompile(`(?ms)\*\*(.*?)\*\*`)
|
||||
italicRegex = regexp.MustCompile(`(?ms)\*(.*?)\*`)
|
||||
underlineRegex = regexp.MustCompile(`(?ms)__(.*?)__`)
|
||||
strikeThroughRegex = regexp.MustCompile(`(?ms)~~(.*?)~~`)
|
||||
)
|
||||
|
||||
func ParseMarkdown(md string) string {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue