« get me outta code hell

data: LyricsEntry & co - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/validators.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-04-14 21:16:30 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-16 13:03:15 -0300
commitbe421bae8d73ae06e66c705a6c78858bcf8568c3 (patch)
treee3e3b24e96172309fed81d6c890756f33b4e482a /src/validators.js
parent14f9c99b13e499068b36ca67142fc20c3b3732a2 (diff)
data: LyricsEntry & co
Diffstat (limited to 'src/validators.js')
-rw-r--r--src/validators.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validators.js b/src/validators.js
index 6badc93a..5b8227fb 100644
--- a/src/validators.js
+++ b/src/validators.js
@@ -7,7 +7,7 @@ import {cut, empty, matchMultiline, typeAppearance} from '#sugar';
 import {
   commentaryRegexCaseInsensitive,
   commentaryRegexCaseSensitiveOneShot,
-  oldStyleLyricsDetectionRegex,
+  multipleLyricsDetectionRegex,
 } from '#wiki-data';
 
 function inspect(value) {
@@ -375,7 +375,7 @@ export const isCommentary =
 export function isOldStyleLyrics(content) {
   isContentString(content);
 
-  if (oldStyleLyricsDetectionRegex.test(content)) {
+  if (multipleLyricsDetectionRegex.test(content)) {
     throw new TypeError(
       `Expected old-style lyrics block not to include "<i> ... :</i>" at start of any line`);
   }