From f2acb528bf3a886bc3a27d04b7f4366c827bfd0b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 6 Feb 2025 16:19:51 -0400 Subject: content: gAIPCommentaryChunkedList: case-insensitive 'wiki editor' --- .../dependencies/generateArtistInfoPageCommentaryChunkedList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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)))), }), -- cgit 1.3.0-6-gf8a5