diff options
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 |
commit | f2acb528bf3a886bc3a27d04b7f4366c827bfd0b (patch) | |
tree | bd0e9ba04908efc35885b66e24225800abc8dec6 /src | |
parent | f34a6baadda3ba87cc482aee34ecb256879730c5 (diff) |
content: gAIPCommentaryChunkedList: case-insensitive 'wiki editor'
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js | 6 |
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)))), }), |