Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 187e580

Browse files
authored
Merge pull request #1369 from dart-lang/fix_crawl_for_devs
improve minor # parsing
2 parents c65f4f9 + 26011a6 commit 187e580

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/crawl.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ Future<String> findSinceLinter(String lint) async {
130130
Future<int> _readLatestMinorVersion() async {
131131
var contents = await new File('pubspec.yaml').readAsString();
132132
YamlMap pubspec = loadYamlNode(contents);
133-
return int.parse(pubspec['version'].split('.').last);
133+
// 0.1.79 or 0.1.79-dev
134+
return int.parse(pubspec['version'].split('.').last.split('-').first);
134135
}
135136

136137
Future<String> _crawlForVersion(String lint) async {

0 commit comments

Comments
 (0)