소스 검색

Update _getProviderTitle to also split on parentheses (#221)

Vishnu Mohandas 1 년 전
부모
커밋
615809e383
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();
   }
 }