Adjust matching regex to catch less unrelated words

This commit is contained in:
Aurora 2023-07-15 21:16:52 +02:00 committed by Jasmin
parent e7aabc0af0
commit e3ae217f46

View file

@ -1,6 +1,6 @@
import sanitizeHtml from "sanitize-html";
const fieldMatchers = [/pro.*nouns?/i, "pronomen"];
const fieldMatchers = [/\bpro.*nouns?\b/i, "pronomen"];
const knownPronounUrls = [
/pronouns\.page\/:?([\w/@]+)/,
/pronouns\.within\.lgbt\/([\w/]+)/,