« get me outta code hell

data: detect & report miscapitalization in commentary heading - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/yaml.js
diff options
context:
space:
mode:
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
commitd642e41ed5459b86a55b0db274a93adb2f7d907a (patch)
tree8652a41fc631ad765cb07ae40fd1a1c08a2f6ace /src/data/yaml.js
parent9b13c1eb3766aeec4be518a755b209d6e0cdfd42 (diff)
data: detect & report miscapitalization in commentary heading
Diffstat (limited to 'src/data/yaml.js')
-rw-r--r--src/data/yaml.js4
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()));
                 }