From 4cf91bc3b9e3bbab75d1ab28351a602c713f98da Mon Sep 17 00:00:00 2001 From: Avris Date: Fri, 4 Dec 2020 23:26:59 +0100 Subject: [PATCH] [profile] pronouns to lower case --- routes/profile.vue | 1 + routes/profileEditor.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/routes/profile.vue b/routes/profile.vue index 0f789dbb..e9a0bc30 100644 --- a/routes/profile.vue +++ b/routes/profile.vue @@ -147,6 +147,7 @@ const link = decodeURIComponent( pronoun + .toLowerCase() .replace(new RegExp('^' + this.$base), '') .replace(new RegExp('^' + this.$base.replace(/^https?:\/\//, '')), '') .replace(new RegExp('^/'), '') diff --git a/routes/profileEditor.vue b/routes/profileEditor.vue index 3161643b..a301c6a8 100644 --- a/routes/profileEditor.vue +++ b/routes/profileEditor.vue @@ -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('^/'), '')