From e3ae217f464fbca69e1f5954f07977b5ffc859a8 Mon Sep 17 00:00:00 2001 From: Aurora Date: Sat, 15 Jul 2023 21:16:52 +0200 Subject: [PATCH] Adjust matching regex to catch less unrelated words --- src/libs/pronouns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/pronouns.js b/src/libs/pronouns.js index 7385e59..3a548a7 100644 --- a/src/libs/pronouns.js +++ b/src/libs/pronouns.js @@ -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/]+)/,