| Index: pkg/unittest/lib/src/string_matchers.dart
|
| ===================================================================
|
| --- pkg/unittest/lib/src/string_matchers.dart (revision 19421)
|
| +++ pkg/unittest/lib/src/string_matchers.dart (working copy)
|
| @@ -178,8 +178,8 @@
|
| }
|
| }
|
|
|
| - bool matches(String item, MatchState matchState) =>
|
| - _regexp.hasMatch(item);
|
| + bool matches(item, MatchState matchState) =>
|
| + item is String ? _regexp.hasMatch(item) : false;
|
|
|
| Description describe(Description description) =>
|
| description.add("match '${_regexp.pattern}'");
|
|
|