File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
packages/flutter_tools/lib/src Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ class ProtocolDiscovery {
60
60
void _handleLine (String line) {
61
61
Uri uri;
62
62
63
- final RegExp _regexp = new RegExp ('${ RegExp . escape ( serviceName )} (http://[^ \n ]+)' );
64
- final Match _match = _regexp .firstMatch (line);
63
+ final RegExp r = new RegExp ('$serviceName (http://[^ \n ]+)' );
64
+ final Match match = r .firstMatch (line);
65
65
66
- if (_match != null ) {
66
+ if (match != null ) {
67
67
try {
68
- uri = Uri .parse (_match [1 ]);
68
+ uri = Uri .parse (match [1 ]);
69
69
} catch (error) {
70
70
_stopScrapingLogs ();
71
71
_completer.completeError (error);
@@ -87,7 +87,8 @@ class ProtocolDiscovery {
87
87
final int actualDevicePort = deviceUri.port;
88
88
final int actualHostPort =
89
89
await portForwarder.forward (actualDevicePort, hostPort: hostPort);
90
- printTrace ('Forwarded host port $actualHostPort to device port $actualDevicePort for $serviceName ' );
90
+ printTrace (
91
+ 'Forwarded host port $actualHostPort to device port $actualDevicePort for $serviceName ' );
91
92
hostUri = deviceUri.replace (port: actualHostPort);
92
93
}
93
94
You can’t perform that action at this time.
0 commit comments