diff --git a/src/app/util.js b/src/app/util.js index 6636da1..2ccb638 100644 --- a/src/app/util.js +++ b/src/app/util.js @@ -222,7 +222,7 @@ pxer.util.getIDfromURL = function (key = 'id', url = document.URL) { if (result) return result; // read id from url - const matchResult = url.match(/\d{4,}/); + const matchResult = url.match(/\d+/); return matchResult ? matchResult[0] : null; }; @@ -237,4 +237,4 @@ pxer.util.fetchPixivApi = async function (url) { ).body; }; -Object.assign(window, pxer.util); \ No newline at end of file +Object.assign(window, pxer.util);