Update githubVersion.js
This commit is contained in:
parent
ed910da288
commit
c35355f01a
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue