Taichi Masuyama 3 лет назад
Родитель
Сommit
f7de677a98
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/app/src/components/PageEditor/EmojiPickerHelper.ts

+ 3 - 3
packages/app/src/components/PageEditor/EmojiPickerHelper.ts

@@ -46,21 +46,21 @@ export default class EmojiPickerHelper {
     if (sc.findPrevious()) {
     if (sc.findPrevious()) {
       return sc.pos.from;
       return sc.pos.from;
     }
     }
-  }
+  };
 
 
   shouldOpen = (startPos: Position): boolean => {
   shouldOpen = (startPos: Position): boolean => {
     const currentPos = this.editor.getCursor();
     const currentPos = this.editor.getCursor();
     const rangeStr = this.editor.getRange(startPos, currentPos);
     const rangeStr = this.editor.getRange(startPos, currentPos);
 
 
     return EMOJI_PATTERN.test(rangeStr);
     return EMOJI_PATTERN.test(rangeStr);
-  }
+  };
 
 
   getInitialSearchingText = (startPos: Position): void => {
   getInitialSearchingText = (startPos: Position): void => {
     const currentPos = this.editor.getCursor();
     const currentPos = this.editor.getCursor();
     const rangeStr = this.editor.getRange(startPos, currentPos);
     const rangeStr = this.editor.getRange(startPos, currentPos);
 
 
     return rangeStr.slice(1); // return without the heading ':'
     return rangeStr.slice(1); // return without the heading ':'
-  }
+  };
 
 
   addEmoji = (emoji: { colons: string }, startPosToReplace: Position|null): void => {
   addEmoji = (emoji: { colons: string }, startPosToReplace: Position|null): void => {
     const currentPos = this.editor.getCursor();
     const currentPos = this.editor.getCursor();