« get me outta code hell

yaml: parseLyrics: watch out for @@ - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-01-31 23:19:00 -0400
committer(quasar) nebula <qznebula@protonmail.com>2026-01-31 23:19:00 -0400
commit1b27f152a302ba0d2e66ad08d35f88aab0aafa7a (patch)
treef56c03882ae8a1b6cf3831945d0823e22f0c63cf /src
parentf49027f0c3b2a9232bc34d624f078baaa32959c2 (diff)
yaml: parseLyrics: watch out for @@
Diffstat (limited to 'src')
-rw-r--r--src/data/yaml.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js
index ddf4481d..7ba6d559 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -1057,7 +1057,7 @@ export function parseReferencingSources(value, {subdoc, ReferencingSourcesEntry}
 }
 
 export function parseLyrics(value, {subdoc, LyricsEntry}) {
-  if (typeof value === 'string' && !/^<i>.*:<\/i>/m.test(value)) {
+  if (typeof value === 'string' && !/^(@@|<i>.*:<\/i>)/m.test(value)) {
     const document = {'Body': value};
 
     return [subdoc(LyricsEntry, document, {bindInto: 'thing'})];