[MFM] Fix emoji syntax parsing
This commit is contained in:
parent
f5d53d784d
commit
600aea4dbb
2 changed files with 10 additions and 3 deletions
|
@ -9,7 +9,7 @@ export type TextElementEmoji = {
|
|||
};
|
||||
|
||||
export default function(text: string) {
|
||||
const match = text.match(/^:([a-zA-Z0-9+-_]+):/);
|
||||
const match = text.match(/^:([a-zA-Z0-9+-_]+?):/);
|
||||
if (!match) return null;
|
||||
const emoji = match[0];
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue