« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/util/external-links.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/external-links.js b/src/util/external-links.js
index 07a83bc1..dee65cc5 100644
--- a/src/util/external-links.js
+++ b/src/util/external-links.js
@@ -380,7 +380,7 @@ export function extractPartFromExternalLink(url, extract) {
   let prefix = '';
 
   if (extract instanceof RegExp) {
-    regexen.push(descriptor.handle);
+    regexen.push(extract);
     tests.push(url);
   } else {
     for (const [key, value] of Object.entries(extract)) {
@@ -403,6 +403,7 @@ export function extractPartFromExternalLink(url, extract) {
 
         case 'query':
           tests.push(query.slice(1));
+          break;
 
         default:
           tests.push('');