From 3007cbba4b5d356336894043bfda51341e144c99 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 16 Jul 2020 09:25:37 +0200 Subject: [PATCH] Make www optional for reddit regex --- assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts.js b/assets/scripts.js index fc6335a..ce7d572 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -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];