« 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 14:29:30 -0300
commit850821c8e99e160370f926a3e25b003de0489f45 (patch)
tree54d2dbacac95c9ef8c256bcc4c659dbf0797b5a6 /src/validators.js
parent3453dc831989829f996a2ef3cefa408b94ca70d6 (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`);
   }