mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-05-10 05:18:39 +00:00
emoji autocomplete not trigger with just colons
This commit is contained in:
@@ -13,7 +13,7 @@ const emojis = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const emojiCompletionList = (context)=>{
|
const emojiCompletionList = (context)=>{
|
||||||
const word = context.matchBefore(/:[^\s:]*/);
|
const word = context.matchBefore(/:[^\s:]+/);
|
||||||
if(!word) return null;
|
if(!word) return null;
|
||||||
|
|
||||||
const line = context.state.doc.lineAt(context.pos);
|
const line = context.state.doc.lineAt(context.pos);
|
||||||
|
|||||||
Reference in New Issue
Block a user