1
0

Fix emoji completion inside of page links

This commit is contained in:
Zef Hemel 2022-09-02 15:18:33 +02:00
parent 668059aadb
commit 3895e3026c
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ export async function indexAnchors({ name: pageName, tree }: IndexTreeEvent) {
} }
export async function anchorComplete() { export async function anchorComplete() {
let prefix = await matchBefore("\\[\\[[^\\]@]*@[\\w\\.\\-\\/]*"); let prefix = await matchBefore("\\[\\[[^\\]@:]*@[\\w\\.\\-\\/]*");
if (!prefix) { if (!prefix) {
return null; return null;
} }

View File

@ -206,7 +206,7 @@ export async function reindexCommand() {
// Completion // Completion
export async function pageComplete() { export async function pageComplete() {
let prefix = await matchBefore("\\[\\[[^\\]@]*"); let prefix = await matchBefore("\\[\\[[^\\]@:]*");
if (!prefix) { if (!prefix) {
return null; return null;
} }