Index: utils/pub/validator/name.dart |
diff --git a/utils/pub/validator/name.dart b/utils/pub/validator/name.dart |
index 0e532a90e2fbdac29395afded46345cce4fe608a..ecc34e4b370ee096df136b650a42909f0e6242f6 100644 |
--- a/utils/pub/validator/name.dart |
+++ b/utils/pub/validator/name.dart |
@@ -35,7 +35,7 @@ class NameValidator extends Validator { |
file = relativeTo(file, libDir); |
if (splitPath(file).contains("src")) continue; |
if (path.extension(file) != '.dart') continue; |
- var libName = path.filenameWithoutExtension(file); |
+ var libName = path.basenameWithoutExtension(file); |
_checkName(libName, 'The name of "$file", "$libName",'); |
} |
}); |