From dd5cc14d31717b0576fd8ddb3f721ec83952c469 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Mon, 30 Nov 2020 13:58:38 +0100 Subject: [PATCH] Updated regex for ID --- app/scripts/scraper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/scraper.js b/app/scripts/scraper.js index 1455f28..55ba498 100644 --- a/app/scripts/scraper.js +++ b/app/scripts/scraper.js @@ -376,7 +376,7 @@ function isMod(prefix) { function extractIDFromURL(url) { // URL are in the format https://f95zone.to/threads/GAMENAME-VERSION-DEVELOPER.ID/ // or https://f95zone.to/threads/ID/ - const match = url.match(/(\.)?([0-9]+)(?!-)/); + const match = url.match(/([0-9]+)(?=\/|\b)(?!-)/); if(!match) return -1; // Parse and return number