Commit f7dfd991 authored by Adam Barth's avatar Adam Barth

Merge pull request #565 from abarth/unauthorized_regexp

Improve unauthorized regexp
parents 1d0e1935 b0470e31
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment