mirror of
https://github.com/misskey-dev/misskey
synced 2025-01-19 16:23:19 +09:00
Fix custom emoji regex
This commit is contained in:
parent
2af028c1d5
commit
4c21caf597
@ -75,7 +75,7 @@ export const plainParser = P.createLanguage({
|
|||||||
//#region Emoji
|
//#region Emoji
|
||||||
emoji: r =>
|
emoji: r =>
|
||||||
P.alt(
|
P.alt(
|
||||||
P.regexp(/:([a-z0-9_+-]+):/i, 1)
|
P.regexp(/:(\w+):/i, 1)
|
||||||
.map(x => makeNode('emoji', {
|
.map(x => makeNode('emoji', {
|
||||||
name: x
|
name: x
|
||||||
})),
|
})),
|
||||||
@ -190,7 +190,7 @@ const mfm = P.createLanguage({
|
|||||||
//#region Emoji
|
//#region Emoji
|
||||||
emoji: r =>
|
emoji: r =>
|
||||||
P.alt(
|
P.alt(
|
||||||
P.regexp(/:([a-z0-9_+-]+):/i, 1)
|
P.regexp(/:(\w+):/i, 1)
|
||||||
.map(x => makeNode('emoji', {
|
.map(x => makeNode('emoji', {
|
||||||
name: x
|
name: x
|
||||||
})),
|
})),
|
||||||
|
Loading…
Reference in New Issue
Block a user