summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-11-04 21:15:36 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-11-04 21:15:36 -0400
commit25aadd4181b5f82f0315931b2b15953746d33af3 (patch)
treebf634bb1e5a19ef818e944cf05c4aa72af9d585e /src
parent5703d06c7396814b239a621d03ef983372491d34 (diff)
downloadabaddon-portaudio-25aadd4181b5f82f0315931b2b15953746d33af3.tar.gz
abaddon-portaudio-25aadd4181b5f82f0315931b2b15953746d33af3.zip
use a slightly different way of getting build number
Diffstat (limited to 'src')
-rw-r--r--src/startup.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/startup.cpp b/src/startup.cpp
index 130ba9b..1bfd9a4 100644
--- a/src/startup.cpp
+++ b/src/startup.cpp
@@ -43,8 +43,8 @@ std::optional<Glib::ustring> GetJavascriptFileFromAppPage(const Glib::ustring &c
start_position += str.size();
}
- if (matches.size() >= 7) {
- return matches[matches.size() - 7];
+ if (matches.size() >= 2) {
+ return matches[matches.size() - 2];
}
return {};
@@ -64,7 +64,7 @@ std::optional<uint32_t> GetBuildNumberFromJSURL(const Glib::ustring &url, const
auto res = req.execute();
if (res.error) return {};
- auto regex = Glib::Regex::create("buildNumber:\"(\\d+)\"");
+ auto regex = Glib::Regex::create(R"(Build Number: "\).concat\("(\d+))");
Glib::MatchInfo match;
Glib::ustring string = res.text;
if (regex->match(string, match)) {