From 976a1e3d239a9554002f3e3bf048468cfb3d10a6 Mon Sep 17 00:00:00 2001 From: Ben Konyi Date: Wed, 9 Feb 2022 14:54:20 -0800 Subject: [PATCH] Change support for VM service message from "The Dart VM Service is listening" to "The Dart VM service is listening" See https://github.com/dart-lang/sdk/issues/46756 --- lib/src/util.dart | 2 +- test/util_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/')); });