Enhanced detect bugfix + outdated apps show curr. ver.

This commit is contained in:
Imran Remtulla
2022-12-04 17:08:11 -05:00
parent 66cc7f059f
commit d934ce2e13
2 changed files with 55 additions and 45 deletions

View File

@@ -201,7 +201,7 @@ ObtainiumError getObtainiumHttpError(Response res) {
String? extractStandardVersionName(String version, {bool strict = false}) {
var match = RegExp(
'${strict ? '^' : ''}[0-9]+(\\.[0-9]+)*(-(alpha|beta)\\+?[0-9]+)?${strict ? '\$' : ''}')
'${strict ? '^' : ''}[0-9]+(\\.[0-9]+)+(-(alpha|beta)\\+?[0-9]+)?${strict ? '\$' : ''}')
.firstMatch(version);
return match != null ? version.substring(match.start, match.end) : null;
}