fix: add unicode flag

This commit is contained in:
Marie 2024-03-03 15:34:20 +00:00
parent fb85b8abdb
commit f5128d6ad5

View file

@ -626,7 +626,7 @@ export const language = P.createLanguage({
return P.seq([
P.alt([P.lineBegin, side]),
mark,
P.regexp(/[\p{N}\p{L}_+-]+/i),
P.regexp(/[\p{Number}\p{Letter}_+-]+/iu),
mark,
P.alt([P.lineEnd, side]),
], 2).map(name => M.EMOJI_CODE(name as string));