« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/checks.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/checks.js')
-rw-r--r--src/data/checks.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/data/checks.js b/src/data/checks.js
index 25863d2d..510bbb30 100644
--- a/src/data/checks.js
+++ b/src/data/checks.js
@@ -276,9 +276,8 @@ export function filterReferenceErrors(wikiData, {
               case '_commentary':
                 if (value) {
                   value =
-                    Array.from(value.matchAll(commentaryRegexCaseSensitive))
-                      .map(({groups}) => groups.artistReferences)
-                      .map(text => text.split(',').map(text => text.trim()));
+                    value
+                      .map(entry => CacheableObject.getUpdateValue(entry, 'artists'));
                 }
 
                 writeProperty = false;