Make pronoun.is pronouns look a little better

This commit is contained in:
ave 2019-10-11 10:30:42 +03:00
parent 0cdfc500ff
commit 0083f767b3
No known key found for this signature in database
GPG Key ID: 09356ABAA42C842B
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ let allPronouns = [
"xey", "xem", "xyr"
].join("|");
let pronounListRegex = new RegExp('\\W*((' + allPronouns + ')(\\s*/\\s*(' + allPronouns + '))+)\\W*', 'i');
let myPronounIsRegex = /(https?:\/\/)?(my\.)?pronoun\.is\/[\w/]+/i;
let myPronounIsRegex = /(https?:\/\/)?(my\.)?pronoun\.is\/([\w/]+)/i;
let explicitPronounsRegex = /pronouns:\s*([^.\n]*)(\.|\n|$)/im;
// Keys: user IDs
@ -76,7 +76,7 @@ function getPronouns(aboutMe) {
// http://my.pronoun.is/she
var match = myPronounIsRegex.exec(aboutMe);
if (match != null) {
return match[0];
return match[3];
}
// Explicit pronouns specification, e.g.