Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 2, 2023
1 parent 9c8b9f5 commit 40912a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified scripts/sdk_satisfaction
Binary file not shown.
4 changes: 2 additions & 2 deletions scripts/sdk_satisfaction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import 'dart:io';
import 'package:pub_semver/pub_semver.dart';

void main() async {
final current = RegExp(r'\d*.\d*.\d*')
final current = RegExp(r'\d*\.\d*\.\d*')
.firstMatch(Process.runSync('dart', ['--version']).stdout as String)!
.group(0)!;
final min = RegExp('sdk: [\'"]>=(\\d*.\\d*.\\d*)')
final min = RegExp('sdk: [\'"]>=(\\d*\\.\\d*\\.\\d*)')
.firstMatch(File('pubspec.yaml').readAsStringSync())!
.group(1)!;
stdout.writeln('${Directory.current.path}: [$current <=> $min]');
Expand Down

0 comments on commit 40912a6

Please sign in to comment.