[profile] mirror pronouns - make check case-insensitive

This commit is contained in:
Andrea 2022-03-17 17:21:00 +01:00
parent 6b957a89a9
commit 0e109de804
1 changed files with 5 additions and 4 deletions

View File

@ -145,10 +145,11 @@
link = link.toLowerCase(); link = link.toLowerCase();
} }
if (link === this.config.pronouns.any const linkNorm = link.toLowerCase();
|| link.startsWith(this.config.pronouns.any + ':') if (linkNorm === this.config.pronouns.any
|| (this.config.pronouns.null && this.config.pronouns.null.routes && this.config.pronouns.null.routes.includes(link)) || linkNorm.startsWith(this.config.pronouns.any + ':')
|| (this.config.pronouns.mirror && this.config.pronouns.mirror.route === pronoun) || (this.config.pronouns.null && this.config.pronouns.null.routes && this.config.pronouns.null.routes.includes(linkNorm))
|| (this.config.pronouns.mirror && this.config.pronouns.mirror.route === linkNorm)
) { ) {
pronounOpinions.push({ pronounOpinions.push({
link, link,