From b0470e31fbb9371d8b561ebf560cdc1c3c357485 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 23 Nov 2015 19:09:43 -0800 Subject: [PATCH] Improve unauthorized regexp Fixes https://github.com/flutter/flutter.github.io/issues/101 --- packages/flutter_tools/lib/src/device.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart index f1717ff433..594b20c451 100644 --- a/packages/flutter_tools/lib/src/device.dart +++ b/packages/flutter_tools/lib/src/device.dart @@ -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)) {