Updated ID regex

pull/57/head
MillenniumEarl 2020-12-03 10:11:48 +01:00
parent 10b3430118
commit 43172692bf
1 changed files with 1 additions and 1 deletions

View File

@ -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]+)(?=\/|\b)(?!-)/);
const match = url.match(/([0-9]+)(?=\/|\b)(?!-|\.)/);
if(!match) return -1;
// Parse and return number