Skip to content

Commit

Permalink
dont need to escape ":" in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Jun 29, 2021
1 parent cb774d5 commit 38dd164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/markup/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var (
blackfridayExtRegex = regexp.MustCompile(`[^:]*:user-content-`)

// EmojiShortCodeRegex find emoji by alias like :smile:
EmojiShortCodeRegex = regexp.MustCompile(`\:[\w\+\-]+\:`)
EmojiShortCodeRegex = regexp.MustCompile(`:[\w\+\-]+:`)
)

// CSS class for action keywords (e.g. "closes: #1")
Expand Down

0 comments on commit 38dd164

Please sign in to comment.