mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Fix reddit match regex
This commit is contained in:
parent
3007cbba4b
commit
3c04d2ccdd
1 changed files with 1 additions and 1 deletions
|
@ -436,7 +436,7 @@ async function verifyProof(url, fingerprint) {
|
||||||
// Reddit
|
// Reddit
|
||||||
if (/^https:\/\/(?:www\.)?reddit\.com\/user/.test(url)) {
|
if (/^https:\/\/(?:www\.)?reddit\.com\/user/.test(url)) {
|
||||||
output.type = "reddit";
|
output.type = "reddit";
|
||||||
match = url.match(/https:\/\/www.reddit.com\/user\/(.*)\/comments\/(.*)\/(.*)\//);
|
match = url.match(/https:\/\/(?:www\.)?reddit\.com\/user\/(.*)\/comments\/(.*)\/(.*)\//);
|
||||||
output.display = match[1];
|
output.display = match[1];
|
||||||
output.url = `https://www.reddit.com/user/${match[1]}`;
|
output.url = `https://www.reddit.com/user/${match[1]}`;
|
||||||
output.proofUrlFetch = `/server/verifyReddit.php?user=${match[1]}&comment=${match[2]}&fp=${fingerprint}`;
|
output.proofUrlFetch = `/server/verifyReddit.php?user=${match[1]}&comment=${match[2]}&fp=${fingerprint}`;
|
||||||
|
|
Loading…
Reference in a new issue