mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-02 23:06:52 +01:00
Fix custom emoji regex
This commit is contained in:
parent
2af028c1d5
commit
4c21caf597
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ export const plainParser = P.createLanguage({
|
|||
//#region Emoji
|
||||
emoji: r =>
|
||||
P.alt(
|
||||
P.regexp(/:([a-z0-9_+-]+):/i, 1)
|
||||
P.regexp(/:(\w+):/i, 1)
|
||||
.map(x => makeNode('emoji', {
|
||||
name: x
|
||||
})),
|
||||
|
@ -190,7 +190,7 @@ const mfm = P.createLanguage({
|
|||
//#region Emoji
|
||||
emoji: r =>
|
||||
P.alt(
|
||||
P.regexp(/:([a-z0-9_+-]+):/i, 1)
|
||||
P.regexp(/:(\w+):/i, 1)
|
||||
.map(x => makeNode('emoji', {
|
||||
name: x
|
||||
})),
|
||||
|
|
Loading…
Reference in a new issue