From 3c04d2ccdd11001d09387b64a1fbdc19c87d3e55 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 16 Jul 2020 09:27:17 +0200 Subject: [PATCH] Fix reddit match regex --- assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts.js b/assets/scripts.js index ce7d572..ee2e5d7 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -436,7 +436,7 @@ async function verifyProof(url, fingerprint) { // Reddit if (/^https:\/\/(?:www\.)?reddit\.com\/user/.test(url)) { 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.url = `https://www.reddit.com/user/${match[1]}`; output.proofUrlFetch = `/server/verifyReddit.php?user=${match[1]}&comment=${match[2]}&fp=${fingerprint}`;