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

Commit 26011a6

Browse files
committed
improve minor # parsing
1 parent c65f4f9 commit 26011a6

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)