« get me outta code hell

wiki-data: drop various parsing exports - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/yaml.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-01-31 16:23:54 -0400
committer(quasar) nebula <qznebula@protonmail.com>2026-01-31 16:24:14 -0400
commit6c32e484a4ad6be5690c1083b9131d0338e3c5b9 (patch)
treea178068848f792f7fb92854c0437ba4d23b4ab7c /src/data/yaml.js
parent35835ba646b83ccf8d2c698fea31ece32269f5c4 (diff)
wiki-data: drop various parsing exports
Diffstat (limited to 'src/data/yaml.js')
-rw-r--r--src/data/yaml.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js
index 2afaffb5..0a7fce93 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -13,7 +13,7 @@ import {parseContentNodes, splitContentNodesAround} from '#replacer';
 import {sortByName} from '#sort';
 import Thing from '#thing';
 import thingConstructors from '#things';
-import {matchContentEntries, multipleLyricsDetectionRegex} from '#wiki-data';
+import {matchContentEntries} from '#wiki-data';
 
 import {
   aggregateThrows,
@@ -1055,10 +1055,7 @@ export function parseReferencingSources(value, {subdoc, ReferencingSourcesEntry}
 }
 
 export function parseLyrics(value, {subdoc, LyricsEntry}) {
-  if (
-    typeof value === 'string' &&
-    !multipleLyricsDetectionRegex.test(value)
-  ) {
+  if (typeof value === 'string' && !/^<i>.*:<\/i>/m.test(value)) {
     const document = {'Body': value};
 
     return [subdoc(LyricsEntry, document, {bindInto: 'thing'})];