From e47beb667e6d128af5d862a9254819dc49853495 Mon Sep 17 00:00:00 2001 From: Yohan Abehssera Date: Mon, 29 Jul 2024 22:50:14 +0200 Subject: [PATCH] fix: parse adb devices with trailing CR --- src/android/utils/adb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/utils/adb.ts b/src/android/utils/adb.ts index 3d0a81f..c8432f1 100644 --- a/src/android/utils/adb.ts +++ b/src/android/utils/adb.ts @@ -289,7 +289,7 @@ export function parseAdbDevices(output: string): Device[] { for (const line of lines) { if (line && !line.startsWith('List')) { - const m = line.match(re); + const m = line.replace(/\r$/, '').match(re); if (m) { const [, serial, state, description] = m;