diff --git a/lib/src/util.dart b/lib/src/util.dart index 592a8508..21949bd2 100644 --- a/lib/src/util.dart +++ b/lib/src/util.dart @@ -44,7 +44,7 @@ Future retry(Future Function() f, Duration interval, /// Potentially useful as a means to extract it from log statements. Uri? extractVMServiceUri(String str) { final listeningMessageRegExp = RegExp( - r'(?:Observatory|The Dart VM Service is) listening on ((http|//)[a-zA-Z0-9:/=_\-\.\[\]]+)', + r'(?:Observatory|The Dart VM service is) listening on ((http|//)[a-zA-Z0-9:/=_\-\.\[\]]+)', ); final match = listeningMessageRegExp.firstMatch(str); if (match != null) { diff --git a/test/util_test.dart b/test/util_test.dart index a0077c79..9717dbc8 100644 --- a/test/util_test.dart +++ b/test/util_test.dart @@ -131,7 +131,7 @@ void main() { test('handles new Dart VM service message format', () { const msg = - 'The Dart VM Service is listening on http://foo.bar:9999/cG90YXRv/'; + 'The Dart VM service is listening on http://foo.bar:9999/cG90YXRv/'; expect( extractVMServiceUri(msg), Uri.parse('http://foo.bar:9999/cG90YXRv/')); });