mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-30 06:04:36 +02:00
Fix: emoji regex (#3093)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user