« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-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)))),
   }),