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/data/checks.js | |
parent | 7342b35d0da518fa5559dadc3239fd574a105432 (diff) |
data: LyricsEntry & co
Diffstat (limited to 'src/data/checks.js')
-rw-r--r-- | src/data/checks.js | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/data/checks.js b/src/data/checks.js index 510bbb30..ecdfdb10 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -19,12 +19,6 @@ import { withAggregate, } from '#aggregate'; -import { - combineWikiDataArrays, - commentaryRegexCaseSensitive, - oldStyleLyricsDetectionRegex, -} from '#wiki-data'; - function inspect(value, opts = {}) { return nodeInspect(value, {colors: ENABLE_COLOR, ...opts}); } @@ -572,7 +566,7 @@ export function reportContentTextErrors(wikiData, { annotation: 'commentary annotation', }; - const newStyleLyricsShape = { + const lyricsShape = { body: 'lyrics body', artistDisplayText: 'lyrics artist display text', annotation: 'lyrics annotation', @@ -624,7 +618,7 @@ export function reportContentTextErrors(wikiData, { additionalFiles: additionalFileShape, commentary: commentaryShape, creditSources: commentaryShape, - lyrics: '_lyrics', + lyrics: lyricsShape, midiProjectFiles: additionalFileShape, sheetMusicFiles: additionalFileShape, }], @@ -748,7 +742,6 @@ export function reportContentTextErrors(wikiData, { nest({message: `Content text errors in ${inspect(thing)}`}, ({nest, push}) => { for (let [property, shape] of Object.entries(propSpec)) { - const rawValue = CacheableObject.getUpdateValue(thing, property); let value = thing[property]; if (value === undefined) { @@ -760,15 +753,6 @@ export function reportContentTextErrors(wikiData, { continue; } - if (shape === '_lyrics') { - if (oldStyleLyricsDetectionRegex.test(rawValue)) { - value = rawValue; - shape = '_content'; - } else { - shape = newStyleLyricsShape; - } - } - const fieldPropertyMessage = getFieldPropertyMessage( thing.constructor[Thing.yamlDocumentSpec], |