mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-10-02 09:31:57 -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 provider of providersWithLinks) {
|
||||||
for (let a of authenticators) {
|
for (let a of authenticators) {
|
||||||
if (a.type !== provider) { continue; }
|
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) {
|
for (let link of links) {
|
||||||
if (link.match(regex)) {
|
if (link.match(regex)) {
|
||||||
verifiedLinks[link] = provider;
|
verifiedLinks[link] = provider;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user