Skip to content

Commit bd64849

Browse files
committed
Update regex to exclude the pre-release tags
1 parent faa1c8d commit bd64849

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/check_intercom_sdk_updates.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Future<dynamic> _githubGet(Uri url) async {
2929
}
3030

3131
String? _parseVersion(String tag) {
32-
final match = RegExp(r'(\d+\.\d+\.\d+)').firstMatch(tag);
32+
// Only accept stable versions (e.g. "19.6.5" or "v19.6.5"). Tags with
33+
// pre-release suffixes such as "19.7.0-preauth.1" must be ignored.
34+
final match = RegExp(r'^v?(\d+\.\d+\.\d+)$').firstMatch(tag.trim());
3335
return match?.group(1);
3436
}
3537

0 commit comments

Comments
 (0)