Skip to content

Commit 38dd164

Browse files
authored
dont need to escape ":" in regex
1 parent cb774d5 commit 38dd164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/markup/html.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var (
6565
blackfridayExtRegex = regexp.MustCompile(`[^:]*:user-content-`)
6666

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

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

0 commit comments

Comments
 (0)