Browse Source

Update _getProviderTitle to also split on parentheses (#221)

Vishnu Mohandas 1 năm trước cách đây
mục cha
commit
615809e383
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/ui/utils/icon_utils.dart

+ 1 - 1
lib/ui/utils/icon_utils.dart

@@ -65,6 +65,6 @@ class IconUtils {
   }
 
   String _getProviderTitle(String provider) {
-    return provider.split(".")[0].toLowerCase();
+    return provider.split(RegExp(r'[.(]'))[0].trim().toLowerCase();
   }
 }