Index: pkg/intl/lib/date_format.dart |
diff --git a/pkg/intl/lib/date_format.dart b/pkg/intl/lib/date_format.dart |
index 7a5ccdbe11c82be6888b2e859da9a80c53221a6f..299132bae32296645b318f5454805373ac4cf190 100644 |
--- a/pkg/intl/lib/date_format.dart |
+++ b/pkg/intl/lib/date_format.dart |
@@ -445,19 +445,19 @@ class DateFormat { |
* A series of regular expressions used to parse a format string into its |
* component fields. |
*/ |
- static var _matchers = const [ |
+ static List<Pattern> _matchers = [ |
// Quoted String - anything between single quotes, with escaping |
// of single quotes by doubling them. |
// e.g. in the pattern "hh 'o''clock'" will match 'o''clock' |
- const RegExp("^\'(?:[^\']|\'\')*\'"), |
+ new RegExp("^\'(?:[^\']|\'\')*\'"), |
// Fields - any sequence of 1 or more of the same field characters. |
// e.g. in "hh:mm:ss" will match hh, mm, and ss. But in "hms" would |
// match each letter individually. |
- const RegExp( |
+ new RegExp( |
"^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)"), |
// Everything else - A sequence that is not quotes or field characters. |
// e.g. in "hh:mm:ss" will match the colons. |
- const RegExp("^[^\'GyMkSEahKHcLQdmsvzZ]+") |
+ new RegExp("^[^\'GyMkSEahKHcLQdmsvzZ]+") |
]; |
/** |