« get me outta code hell

data: CommentaryEntry - 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:
author(quasar) nebula <qznebula@protonmail.com>2025-04-14 20:59:17 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-16 13:03:14 -0300
commit14f9c99b13e499068b36ca67142fc20c3b3732a2 (patch)
tree057838c7f6b70f26e5b84c6e341bb2873cf7e4d2 /src/data/checks.js
parentd250ab8005783d722ac6a702995e8acd3c7cadc5 (diff)
data: CommentaryEntry
Fully integrated, all in one commit! Wow!
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;