[profile] pronouns to lower case

This commit is contained in:
Avris 2020-12-04 23:26:59 +01:00
parent e7bd5c025a
commit 4cf91bc3b9
2 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,7 @@
const link = decodeURIComponent(
pronoun
.toLowerCase()
.replace(new RegExp('^' + this.$base), '')
.replace(new RegExp('^' + this.$base.replace(/^https?:\/\//, '')), '')
.replace(new RegExp('^/'), '')

View File

@ -191,6 +191,7 @@
validatePronoun(pronoun) {
const link = decodeURIComponent(
pronoun
.toLowerCase()
.replace(new RegExp('^' + this.$base), '')
.replace(new RegExp('^' + this.$base.replace(/^https?:\/\//, '')), '')
.replace(new RegExp('^/'), '')