Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 6e8a258

Browse files
authored
Change support for VM service message from "The Dart VM Service is listening" to "The Dart VM service is listening" (#366)
See dart-lang/sdk#46756
1 parent 8441670 commit 6e8a258

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/util.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Future<dynamic> retry(Future Function() f, Duration interval,
4444
/// Potentially useful as a means to extract it from log statements.
4545
Uri? extractVMServiceUri(String str) {
4646
final listeningMessageRegExp = RegExp(
47-
r'(?:Observatory|The Dart VM Service is) listening on ((http|//)[a-zA-Z0-9:/=_\-\.\[\]]+)',
47+
r'(?:Observatory|The Dart VM service is) listening on ((http|//)[a-zA-Z0-9:/=_\-\.\[\]]+)',
4848
);
4949
final match = listeningMessageRegExp.firstMatch(str);
5050
if (match != null) {

test/util_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void main() {
131131

132132
test('handles new Dart VM service message format', () {
133133
const msg =
134-
'The Dart VM Service is listening on http://foo.bar:9999/cG90YXRv/';
134+
'The Dart VM service is listening on http://foo.bar:9999/cG90YXRv/';
135135
expect(
136136
extractVMServiceUri(msg), Uri.parse('http://foo.bar:9999/cG90YXRv/'));
137137
});

0 commit comments

Comments
 (0)