Improve the wikilinks regex
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2020-06-24 00:53:48 +02:00
parent 7f7c17830a
commit 845ca2a683

View File

@ -39,7 +39,7 @@ module.exports = (options) => {
} }
return Plugin( return Plugin(
/(#?)\[\[([:\w\s/]+)\]\]/, /(#?)\[\[([^\]]+)\]\]/,
(match, utils) => { (match, utils) => {
let label = '' let label = ''
let pageName = '' let pageName = ''