diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-02-14 12:03:52 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-02-14 13:35:33 -0400 |
commit | d642e41ed5459b86a55b0db274a93adb2f7d907a (patch) | |
tree | 8652a41fc631ad765cb07ae40fd1a1c08a2f6ace /src/data/yaml.js | |
parent | 9b13c1eb3766aeec4be518a755b209d6e0cdfd42 (diff) |
data: detect & report miscapitalization in commentary heading
Diffstat (limited to 'src/data/yaml.js')
-rw-r--r-- | src/data/yaml.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js index 3b05d505..3bdba638 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -12,7 +12,7 @@ import {colors, ENABLE_COLOR, logInfo, logWarn} from '#cli'; import find, {bindFind, getAllFindSpecs} from '#find'; import Thing from '#thing'; import thingConstructors from '#things'; -import {commentaryRegex, sortByName} from '#wiki-data'; +import {commentaryRegexCaseSensitive, sortByName} from '#wiki-data'; import { annotateErrorWithFile, @@ -1189,7 +1189,7 @@ export function filterReferenceErrors(wikiData) { case '_commentary': if (value) { value = - Array.from(value.matchAll(commentaryRegex)) + Array.from(value.matchAll(commentaryRegexCaseSensitive)) .map(({groups}) => groups.artistReferences) .map(text => text.split(',').map(text => text.trim())); } |