Improve unauthorized regexp

Fixes https://github.com/flutter/flutter.github.io/issues/101
This commit is contained in:
Adam Barth
2015-11-23 19:09:43 -08:00
parent 1d0e193519
commit b0470e31fb

View File

@@ -522,7 +522,7 @@ class AndroidDevice extends Device {
// 0149947A0D01500C device usb:340787200X
RegExp deviceRegex2 = new RegExp(r'^(\S+)\s+device\s+\S+$');
RegExp unauthorizedRegex = new RegExp(r'^(\S+)\s+unauthorized$');
RegExp unauthorizedRegex = new RegExp(r'^(\S+)\s+unauthorized\s+\S+$');
// Skip first line, which is always 'List of devices attached'.
for (String line in output.skip(1)) {