Merge pull request #565 from abarth/unauthorized_regexp

Improve unauthorized regexp
This commit is contained in:
Adam Barth
2015-11-23 19:53:05 -08:00

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)) {