Simplified EVD (only xx.yy.zz)

This commit is contained in:
Imran Remtulla
2022-12-05 16:31:43 -05:00
parent b496a416ff
commit 15183c3a95
3 changed files with 5 additions and 5 deletions

View File

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