From d642e41ed5459b86a55b0db274a93adb2f7d907a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 14 Feb 2024 12:03:52 -0400 Subject: data: detect & report miscapitalization in commentary heading --- src/data/yaml.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/data/yaml.js') 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())); } -- cgit 1.3.0-6-gf8a5