Compare commits

...

3 Commits

Author SHA1 Message Date
vishnukvmd
df0964ba70 v2.0.27 2023-12-17 17:19:45 +05:30
vishnukvmd
2407552c1c Merge branch 'main' into replace_spaces 2023-12-17 17:19:31 +05:30
vishnukvmd
2fa0f27581 Ignore spaces within provider names 2023-12-17 17:15:04 +05:30
2 changed files with 10 additions and 4 deletions

View File

@@ -83,13 +83,19 @@ class IconUtils {
.loadString('assets/simple-icons/_data/simple-icons.json');
final simpleIcons = json.decode(simpleIconData);
for (final icon in simpleIcons["icons"]) {
_simpleIcons[icon["title"].toString().toLowerCase()] = icon["hex"];
_simpleIcons[icon["title"]
.toString()
.replaceAll(' ', '')
.toLowerCase()] = icon["hex"];
}
final customIconData = await rootBundle
.loadString('assets/custom-icons/_data/custom-icons.json');
final customIcons = json.decode(customIconData);
for (final icon in customIcons["icons"]) {
_customIcons[icon["title"].toString().toLowerCase()] = CustomIconData(
_customIcons[icon["title"]
.toString()
.replaceAll(' ', '')
.toLowerCase()] = CustomIconData(
icon["slug"],
icon["hex"],
);
@@ -108,7 +114,7 @@ class IconUtils {
}
String _getProviderTitle(String provider) {
return provider.split(RegExp(r'[.(]'))[0].trim().toLowerCase();
return provider.split(RegExp(r'[.(]'))[0].replaceAll(' ', '').toLowerCase();
}
}

View File

@@ -1,6 +1,6 @@
name: ente_auth
description: ente two-factor authenticator
version: 2.0.26+226
version: 2.0.27+227
publish_to: none
environment: