mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-23 21:17:59 +02:00
fixed emoji regex.
This commit is contained in:
parent
b7631c6d97
commit
c32680a643
2 changed files with 2 additions and 1 deletions
|
@ -201,7 +201,7 @@ const rules: MarkdownRules = {
|
|||
},
|
||||
emoji: {
|
||||
order: md.defaultRules.strong.order,
|
||||
match: (source) => /^:([a-zA-z_-]*):/.exec(source),
|
||||
match: (source) => /^:([^:\s]+):/.exec(source),
|
||||
parse(capture) {
|
||||
return {
|
||||
id: capture[1],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue