π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Ignore spaces within provider names (#395)
Vishnu Mohandas974c34a56998
diff --git a/lib/ui/utils/icon_utils.dart b/lib/ui/utils/icon_utils.dartindex 7cb1299ac5..91a72425b7 100644--- a/lib/ui/utils/icon_utils.dart+++ b/lib/ui/utils/icon_utils.dart@@ -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();}}diff --git a/pubspec.yaml b/pubspec.yamlindex cb8eda5d76..fc9c729f75 100644--- a/pubspec.yaml+++ b/pubspec.yaml@@ -1,6 +1,6 @@name: ente_authdescription: ente two-factor authenticator-version: 2.0.26+226+version: 2.0.28+227publish_to: noneenvironment: