|
@@ -3,13 +3,13 @@ import { CSSProperties } from 'react';
|
|
|
import i18n from 'i18next';
|
|
import i18n from 'i18next';
|
|
|
|
|
|
|
|
// https://regex101.com/r/Gqhor8/1
|
|
// https://regex101.com/r/Gqhor8/1
|
|
|
-const EMOJI_PATTERN = new RegExp(/\B:[^:\s]+/);
|
|
|
|
|
|
|
+const EMOJI_PATTERN = ':';
|
|
|
|
|
|
|
|
export default class EmojiPickerHelper {
|
|
export default class EmojiPickerHelper {
|
|
|
|
|
|
|
|
editor;
|
|
editor;
|
|
|
|
|
|
|
|
- pattern: RegExp;
|
|
|
|
|
|
|
+ pattern: string;
|
|
|
|
|
|
|
|
constructor(editor) {
|
|
constructor(editor) {
|
|
|
this.editor = editor;
|
|
this.editor = editor;
|