mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
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
|
||||
if (/^https:\/\/www.reddit.com\/user/.test(url)) {
|
||||
if (/^https:\/\/(?:www\.)?reddit\.com\/user/.test(url)) {
|
||||
output.type = "reddit";
|
||||
match = url.match(/https:\/\/www.reddit.com\/user\/(.*)\/comments\/(.*)\/(.*)\//);
|
||||
output.display = match[1];
|
||||
|
|
Loading…
Reference in a new issue