Updated regex for ID

pull/57/head
MillenniumEarl 2020-11-30 13:58:38 +01:00
parent 1aeb824093
commit dd5cc14d31
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]+)(?!-)/);
const match = url.match(/([0-9]+)(?=\/|\b)(?!-)/);
if(!match) return -1;
// Parse and return number