« get me outta code hell

replacer: don't skip external links near non-link '[' - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-09-03 16:44:52 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-09-03 16:44:52 -0300
commit0c70a112914f7eb4bea0d839d44060cb30f4f30e (patch)
tree2662e93f467353c058bcd9b822bcab32bfcc623e
parentc3a9c8f5724852a09bf51840f7278ca6cfe09d70 (diff)
replacer: don't skip external links near non-link '['
-rw-r--r--src/common-util/wiki-data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common-util/wiki-data.js b/src/common-util/wiki-data.js
index 603069a5..cb024022 100644
--- a/src/common-util/wiki-data.js
+++ b/src/common-util/wiki-data.js
@@ -533,7 +533,7 @@ export function combineWikiDataArrays(arrays) {
 // Markdown stuff
 
 export function* matchMarkdownLinks(markdownSource, {marked}) {
-  const plausibleLinkRegexp = /\[.*?\)/g;
+  const plausibleLinkRegexp = /\[(?=.*?\))/g;
 
   let plausibleMatch = null;
   while (plausibleMatch = plausibleLinkRegexp.exec(markdownSource)) {