Index: utils/pub/validator/license.dart |
diff --git a/utils/pub/validator/license.dart b/utils/pub/validator/license.dart |
index 25556f85b2c097ff0a8b6ad001b479aa345ddcc9..8c32548c9c6918812bb94d1fd113e3e94520017d 100644 |
--- a/utils/pub/validator/license.dart |
+++ b/utils/pub/validator/license.dart |
@@ -20,7 +20,7 @@ class LicenseValidator extends Validator { |
return listDir(entrypoint.root.dir).then((files) { |
var licenseLike = new RegExp( |
r"^([a-zA-Z0-9]+[-_])?(LICENSE|COPYING)(\..*)?$"); |
- if (files.mappedBy(basename).any(licenseLike.hasMatch)) return; |
+ if (files.map(basename).any(licenseLike.hasMatch)) return; |
errors.add( |
"You must have a COPYING or LICENSE file in the root directory.\n" |