[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();
}
if (link === this.config.pronouns.any
|| link.startsWith(this.config.pronouns.any + ':')
|| (this.config.pronouns.null && this.config.pronouns.null.routes && this.config.pronouns.null.routes.includes(link))
|| (this.config.pronouns.mirror && this.config.pronouns.mirror.route === pronoun)
const linkNorm = link.toLowerCase();
if (linkNorm === this.config.pronouns.any
|| linkNorm.startsWith(this.config.pronouns.any + ':')
|| (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({
link,