« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'upd8.js')
-rwxr-xr-xupd8.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/upd8.js b/upd8.js
index 72031b80..7ec6b55c 100755
--- a/upd8.js
+++ b/upd8.js
@@ -961,17 +961,6 @@ const replacerSpec = {
     }
     if (error) process.exit();
 
-    const categoryPart = Object.keys(replacerSpec).join('|');
-    // transformInline.regexp = new RegExp(String.raw`(?<!\\)\[\[((${categoryPart}):)?(.+?)((?<! )#.+?)?(\|(.+?))?\]\]`, 'g');
-    transformInline.regexp = makeExtendedRegExp(String.raw`
-      (?<!\\)\[\[             // Opening [[ (only match unescaped).
-      ((${categoryPart}):)?   // Key of which replacer to use (track, album, etc). Defaults to track.
-      (.+?)                   // Argument for search function (or value function, if none provided).
-      ((?<! )#.+?)?           // Hash part for links, except when past a space (e.g. "Track #1").
-      (\|(.+?))?              // Label part, to replace default text or provide when there is none.
-      \]\]                    // Closing ]].
-    `, 'g');
-
     // Syntax literals.
     const tagBeginning = '[[';
     const tagEnding = ']]';