Unverified Commit 3f4ce348 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

make sure version check includes hotfixes (#33459)

parent 7d27550f
...@@ -673,7 +673,7 @@ Future<void> _verifyVersion(String filename) async { ...@@ -673,7 +673,7 @@ Future<void> _verifyVersion(String filename) async {
print('$redLine'); print('$redLine');
exit(1); exit(1);
} }
final RegExp pattern = RegExp(r'^[0-9]+\.[0-9]+\.[0-9]+(-pre\.[0-9]+)?$'); final RegExp pattern = RegExp(r'^\d+\.\d+\.\d+(?:|-pre\.\d+|\+hotfix\.\d+)$');
if (!version.contains(pattern)) { if (!version.contains(pattern)) {
print('$redLine'); print('$redLine');
print('The version logic generated an invalid version string.'); print('The version logic generated an invalid version string.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment