mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 05:10:15 +02:00
Enhanced detect bugfix + outdated apps show curr. ver.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user