mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-13 04:57:37 +02:00
fix: microg patches ame is not titlecase
This commit is contained in:
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user