Kaynağa Gözat

Update _getProviderTitle to split on parentheses

laurenspriem 1 yıl önce
ebeveyn
işleme
10ca447f54
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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();
   }
 }