diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-04-14 21:16:30 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-04-14 21:35:13 -0300 |
commit | fbe7f21f6381b0f93d4b89ae8163ec48c4185a9f (patch) | |
tree | 8e9096961057ab1c93de4912ca30a8fce7bf01d6 /src/validators.js | |
parent | 7342b35d0da518fa5559dadc3239fd574a105432 (diff) |
data: LyricsEntry & co
Diffstat (limited to 'src/validators.js')
-rw-r--r-- | src/validators.js | 4 |
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`); } |