fix: microg patches ame is not titlecase

This commit is contained in:
Alberto Ponces 2022-09-01 09:07:13 +01:00
parent a580375078
commit c7d9ca961a

View File

@ -26,7 +26,12 @@ class Patch {
Map<String, dynamic> toJson() => _$PatchToJson(this); Map<String, dynamic> toJson() => _$PatchToJson(this);
String getSimpleName() { String getSimpleName() {
return name.replaceAll('-', ' ').split('-').join(' ').toTitleCase(); return name
.replaceAll('-', ' ')
.split('-')
.join(' ')
.toTitleCase()
.replaceFirst('Microg', 'MicroG');
} }
} }