This reverts commit 275ab9c69b.
This commit is contained in:
@@ -202,7 +202,7 @@ Future<TaskResult> runTask(
|
||||
.transform<String>(const LineSplitter())
|
||||
.listen((String line) {
|
||||
if (!uri.isCompleted) {
|
||||
final Uri? serviceUri = parseServiceUri(line, prefix: RegExp('(Observatory|The Dart VM service is) listening on '));
|
||||
final Uri? serviceUri = parseServiceUri(line, prefix: RegExp('The Dart VM service is listening on '));
|
||||
if (serviceUri != null) {
|
||||
uri.complete(serviceUri);
|
||||
}
|
||||
|
||||
@@ -664,14 +664,14 @@ Future<void> runAndCaptureAsyncStacks(Future<void> Function() callback) {
|
||||
bool canRun(String path) => _processManager.canRun(path);
|
||||
|
||||
final RegExp _obsRegExp =
|
||||
RegExp('An Observatory debugger .* is available at: ');
|
||||
RegExp('A Dart VM Service .* is available at: ');
|
||||
final RegExp _obsPortRegExp = RegExp(r'(\S+:(\d+)/\S*)$');
|
||||
final RegExp _obsUriRegExp = RegExp(r'((http|//)[a-zA-Z0-9:/=_\-\.\[\]]+)');
|
||||
|
||||
/// Tries to extract a port from the string.
|
||||
///
|
||||
/// The `prefix`, if specified, is a regular expression pattern and must not contain groups.
|
||||
/// `prefix` defaults to the RegExp: `An Observatory debugger .* is available at: `.
|
||||
/// `prefix` defaults to the RegExp: `A Dart VM Service .* is available at: `.
|
||||
int? parseServicePort(String line, {
|
||||
Pattern? prefix,
|
||||
}) {
|
||||
@@ -689,7 +689,7 @@ int? parseServicePort(String line, {
|
||||
/// Tries to extract a URL from the string.
|
||||
///
|
||||
/// The `prefix`, if specified, is a regular expression pattern and must not contain groups.
|
||||
/// `prefix` defaults to the RegExp: `An Observatory debugger .* is available at: `.
|
||||
/// `prefix` defaults to the RegExp: `A Dart VM Service .* is available at: `.
|
||||
Uri? parseServiceUri(String line, {
|
||||
Pattern? prefix,
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user