Index: pkg/intl/lib/bidi_utils.dart |
diff --git a/pkg/intl/lib/bidi_utils.dart b/pkg/intl/lib/bidi_utils.dart |
index f6cb86cdfe7068c8ae0183472a64a7041d232201..b6bb0070df5d6028eea27ca62f58eda5e99b40e7 100644 |
--- a/pkg/intl/lib/bidi_utils.dart |
+++ b/pkg/intl/lib/bidi_utils.dart |
@@ -186,7 +186,7 @@ class Bidi { |
static bool isRtlLanguage(String languageString) { |
return new RegExp(r'^(ar|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_]' |
r'(Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))' |
- r'($|-|_)', ignoreCase : true).hasMatch(languageString); |
+ r'($|-|_)', caseSensitive: false).hasMatch(languageString); |
} |
/** |
@@ -401,4 +401,4 @@ class Bidi { |
static bool detectRtlDirectionality(String str, {bool isHtml: false}) { |
return estimateDirectionOfText(str, isHtml: isHtml) == TextDirection.RTL; |
} |
-} |
+} |