add matcher for "(i) go(es) by"

This commit is contained in:
ItsVipra 2023-07-17 12:18:31 +02:00
parent 9d8c0332be
commit 96c530c30f
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -12,6 +12,8 @@ const validFields = [
"Pronouns / Pronomen",
"Pronomen (DE)",
"Pronouns (EN)",
"i go by",
"go by",
];
const invalidFields = ["pronounciation", "pronomenverwaltung"];