forked from Mirrors/keyoxide-web
Make www optional for reddit regex
This commit is contained in:
parent
3e30a4f071
commit
3007cbba4b
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,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];
|
||||||
|
|
Loading…
Reference in a new issue