From d642e41ed5459b86a55b0db274a93adb2f7d907a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 14 Feb 2024 12:03:52 -0400 Subject: data: detect & report miscapitalization in commentary heading --- src/data/composite/wiki-data/withParsedCommentaryEntries.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/data/composite/wiki-data/withParsedCommentaryEntries.js') diff --git a/src/data/composite/wiki-data/withParsedCommentaryEntries.js b/src/data/composite/wiki-data/withParsedCommentaryEntries.js index edfc9e3c..f0404a5d 100644 --- a/src/data/composite/wiki-data/withParsedCommentaryEntries.js +++ b/src/data/composite/wiki-data/withParsedCommentaryEntries.js @@ -2,7 +2,7 @@ import {input, templateCompositeFrom} from '#composite'; import find from '#find'; import {stitchArrays} from '#sugar'; import {isCommentary} from '#validators'; -import {commentaryRegex} from '#wiki-data'; +import {commentaryRegexCaseSensitive} from '#wiki-data'; import { fillMissingListItems, @@ -30,7 +30,7 @@ export default templateCompositeFrom({ [input('from')]: commentaryText, }) => continuation({ ['#rawMatches']: - Array.from(commentaryText.matchAll(commentaryRegex)), + Array.from(commentaryText.matchAll(commentaryRegexCaseSensitive)), }), }, -- cgit 1.3.0-6-gf8a5