From 845ca2a68318a9af568e0c2433d0821f87538399 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 24 Jun 2020 00:53:48 +0200 Subject: [PATCH] Improve the wikilinks regex --- editor/src/wikilinks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/wikilinks.js b/editor/src/wikilinks.js index 202e2c3..0cd6f50 100644 --- a/editor/src/wikilinks.js +++ b/editor/src/wikilinks.js @@ -39,7 +39,7 @@ module.exports = (options) => { } return Plugin( - /(#?)\[\[([:\w\s/]+)\]\]/, + /(#?)\[\[([^\]]+)\]\]/, (match, utils) => { let label = '' let pageName = ''