INNER CODE UNIT · Dart
_Pattern
livekit/client-sdk-flutter · scripts/check_version.dart:30
class _Pattern {
static final semanticVersion = RegExp(r'(\d+\.\d+\.\d+)');
static final webrtcSdkVersion = RegExp(r"s\.dependency\s+'WebRTC-SDK',\s+'([^']+)'");
}
class _Color {
static const reset = '\x1B[0m';
static const green = '\x1B[32m';
static const bold = '\x1B[1m';
}
String readFile(String path) {
try {
return File(path).readAsStringSync();
} catch (e) {
throw Exception('Failed to read $path: $e');
}
}