« get me outta code hell

content: gAIPCommentaryChunkedList: case-insensitive 'wiki editor' - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-02-06 16:19:51 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-02-06 16:19:51 -0400
commitf2acb528bf3a886bc3a27d04b7f4366c827bfd0b (patch)
treebd0e9ba04908efc35885b66e24225800abc8dec6 /src
parentf34a6baadda3ba87cc482aee34ecb256879730c5 (diff)
content: gAIPCommentaryChunkedList: case-insensitive 'wiki editor'
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js b/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js
index 6c619f3c..fe2ff70a 100644
--- a/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js
+++ b/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js
@@ -90,8 +90,8 @@ export default {
 
             .filter(({annotation}) =>
               (filterWikiEditorCommentary
-                ? annotation?.startsWith(`wiki editor`)
-                : !annotation?.startsWith(`wiki editor`)))
+                ? annotation?.match(/^wiki editor/i)
+                : !annotation?.match(/^wiki editor/i)))
 
             .map(entry => processEntry({thing, entry})));
 
@@ -187,7 +187,7 @@ export default {
           .map(({annotation}) =>
             relation('transformContent',
               (filterWikiEditorCommentary
-                ? annotation?.replace(/^wiki editor(, )?/, '')
+                ? annotation?.replace(/^wiki editor(, )?/i, '')
                 : annotation)))),
   }),