Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2540)

Unified Diff: utils/pub/validator/name.dart

Issue 11471048: Revise path library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/pub/path.dart ('k') | utils/tests/pub/path/path_posix_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",');
}
});
« no previous file with comments | « utils/pub/path.dart ('k') | utils/tests/pub/path/path_posix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698