[profile] mirror pronouns - make check case-insensitive
This commit is contained in:
parent
6b957a89a9
commit
0e109de804
|
@ -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,
|
||||||
|
|
Reference in New Issue