From 3895e3026c0f287b49175a865d003b76551d9448 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 2 Sep 2022 15:18:33 +0200 Subject: [PATCH] Fix emoji completion inside of page links --- packages/plugs/core/anchor.ts | 2 +- packages/plugs/core/page.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugs/core/anchor.ts b/packages/plugs/core/anchor.ts index 9de315c..6f0c977 100644 --- a/packages/plugs/core/anchor.ts +++ b/packages/plugs/core/anchor.ts @@ -30,7 +30,7 @@ export async function indexAnchors({ name: pageName, tree }: IndexTreeEvent) { } export async function anchorComplete() { - let prefix = await matchBefore("\\[\\[[^\\]@]*@[\\w\\.\\-\\/]*"); + let prefix = await matchBefore("\\[\\[[^\\]@:]*@[\\w\\.\\-\\/]*"); if (!prefix) { return null; } diff --git a/packages/plugs/core/page.ts b/packages/plugs/core/page.ts index 55a749e..ac2b713 100644 --- a/packages/plugs/core/page.ts +++ b/packages/plugs/core/page.ts @@ -206,7 +206,7 @@ export async function reindexCommand() { // Completion export async function pageComplete() { - let prefix = await matchBefore("\\[\\[[^\\]@]*"); + let prefix = await matchBefore("\\[\\[[^\\]@:]*"); if (!prefix) { return null; }