Updated ID regex
parent
10b3430118
commit
43172692bf
|
@ -376,7 +376,7 @@ function isMod(prefix) {
|
||||||
function extractIDFromURL(url) {
|
function extractIDFromURL(url) {
|
||||||
// URL are in the format https://f95zone.to/threads/GAMENAME-VERSION-DEVELOPER.ID/
|
// URL are in the format https://f95zone.to/threads/GAMENAME-VERSION-DEVELOPER.ID/
|
||||||
// or https://f95zone.to/threads/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;
|
if(!match) return -1;
|
||||||
|
|
||||||
// Parse and return number
|
// Parse and return number
|
||||||
|
|
Loading…
Reference in New Issue