mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-04-17 01:16:39 +02:00
Update githubVersion.js
This commit is contained in:
parent
ed910da288
commit
c35355f01a
@ -40,7 +40,8 @@ async function getCurrentVersionFromBypass() {
|
|||||||
const response = await fetch(url);
|
const response = await fetch(url);
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
const text = await response.text();
|
const text = await response.text();
|
||||||
const match = text.match(/version\s*=\s*['"](\d+\.\d+\.\d+)['"]/);
|
const versionRegex = /version\s*=\s*['"](\d+\.\d+\.\d+)['"]/;
|
||||||
|
const match = versionRegex.exec(text);
|
||||||
if (match) {
|
if (match) {
|
||||||
return match[1];
|
return match[1];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user