diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-09-21 12:46:39 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-09-21 12:46:39 -0300 |
commit | 934494b5f3ee610d6473b3ca4c21c80731c213af (patch) | |
tree | 06bd69c1ca93d326e582df5cf303875eab341d56 /src/data | |
parent | 72d9bf3ca4beaee26a59e5c68023d20ec1513f65 (diff) |
find: kebab-fuzzy matches in content text
Outside content text, this doesn't cause miscapitalized references to slip past, but it does stop them from being specially reported i.e. highlighting which letters need to be updated or treating as more than just "nothing matches for this reference" generic errors. That's a TODO. Sorry! Gyeep!
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/checks.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/data/checks.js b/src/data/checks.js index 3fcb6d3b..5eba593b 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -637,7 +637,15 @@ export function reportContentTextErrors(wikiData, { }], ]; - const boundFind = bindFind(wikiData, {mode: 'error'}); + const boundFind = + bindFind(wikiData, { + mode: 'error', + fuzz: { + capitalization: true, + kebab: true, + }, + }); + const findArtistOrAlias = bindFindArtistOrAlias(boundFind); function* processContent(input) { |