diff --git a/lib/src/gitsumu.dart b/lib/src/gitsumu.dart index 7283e97..d7cf483 100644 --- a/lib/src/gitsumu.dart +++ b/lib/src/gitsumu.dart @@ -185,7 +185,7 @@ Future getFlutterVersion() async { // Separate regexp into ASCII pieces to avoid encoding error on Windows. final re00 = RegExp(r'^Flutter (?[0-9.]+).*'); final version = re00.firstMatch(infoStringList[0])?.namedGroup('version'); - final re01 = RegExp(r'channel (?\w+) .*'); + final re01 = RegExp(r'channel (?\[?[\w-]+\]?) .*'); final channel = re01.firstMatch(infoStringList[0])?.namedGroup('channel'); final re11 = RegExp(r'revision (?\w+) .*');