Make pronoun.is pronouns look a little better
This commit is contained in:
parent
0cdfc500ff
commit
0083f767b3
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue