Skip to content

Commit

Permalink
fixes 55383
Browse files Browse the repository at this point in the history
  • Loading branch information
peterlauri committed Apr 22, 2020
1 parent 7006637 commit 5794809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter_tools/lib/src/commands/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class VersionCommand extends FlutterCommand {
}
}

final String version = argResults.rest[0].replaceFirst('v', '');
final String version = argResults.rest[0].replaceFirst(RegExp('^v'), '');
final List<String> matchingTags = tags.where((String tag) => tag.contains(version)).toList();
String matchingTag;
// TODO(fujino): make this a tool exit and fix tests
Expand Down

0 comments on commit 5794809

Please sign in to comment.