From d121463bad30e7ec22b0c2e042a0684c069b8ee9 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sun, 20 Oct 2024 12:10:11 -0400 Subject: [PATCH] APKPure: Fix bug with versionCode not found --- lib/app_sources/apkpure.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/app_sources/apkpure.dart b/lib/app_sources/apkpure.dart index 29ce3f7..6b1c3c8 100644 --- a/lib/app_sources/apkpure.dart +++ b/lib/app_sources/apkpure.dart @@ -95,10 +95,9 @@ class APKPure extends AppSource { // Unclear why there can even be multiple APKs for the same version and arch var apkInfo = e.nextElementSibling?.querySelector('div.info'); String? versionCode = RegExp('[0-9]+') - .firstMatch(apkInfo - ?.querySelector('div.info-top span.code') - ?.text ?? - '') + .firstMatch( + apkInfo?.querySelector('div.info-top .code')?.text ?? + '') ?.group(0) ?.trim(); var types = apkInfo