Update githubVersion.js

This commit is contained in:
Ludy87 2024-06-07 17:07:14 +02:00
parent ed910da288
commit c35355f01a
No known key found for this signature in database
GPG key ID: 92696155E0220F94

View file

@ -40,7 +40,8 @@ async function getCurrentVersionFromBypass() {
const response = await fetch(url);
if (response.status === 200) {
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) {
return match[1];
}