« 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-14 21:35:13 -0300
commit7342b35d0da518fa5559dadc3239fd574a105432 (patch)
treea17ec409c03b6ab1a01c2f4cc2ec8ef2f8f85d4b /src/data/checks.js
parent6d811c36d2b9795ad58fd0bf11f6033d93863fed (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;