mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 20:23:08 +02:00
Fix: emoji regex (#3093)
This commit is contained in:
parent
69d72819c6
commit
18571c52fb
1 changed files with 1 additions and 1 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…
Reference in a new issue