mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-30 08:35:24 -04:00
[bug] fix profile verification case sensitive
This commit is contained in:
parent
a8d4055a08
commit
6660d7feb7
@ -32,7 +32,7 @@ const verifyLinks = (links, authenticators) => {
|
||||
for (let provider of providersWithLinks) {
|
||||
for (let a of authenticators) {
|
||||
if (a.type !== provider) { continue; }
|
||||
const regex = new RegExp(socialProviders[a.type].linkRegex(JSON.parse(a.payload)));
|
||||
const regex = new RegExp(socialProviders[a.type].linkRegex(JSON.parse(a.payload)), 'i');
|
||||
for (let link of links) {
|
||||
if (link.match(regex)) {
|
||||
verifiedLinks[link] = provider;
|
||||
|
Loading…
x
Reference in New Issue
Block a user