Skip to content

Commit 78f3206

Browse files
committed
fix: parse adb devices with trailing CR
1 parent e9f573f commit 78f3206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/utils/adb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export function parseAdbDevices(output: string): Device[] {
289289

290290
for (const line of lines) {
291291
if (line && !line.startsWith('List')) {
292-
const m = line.match(re);
292+
const m = line.replace(/\r$/, '').match(re);
293293

294294
if (m) {
295295
const [, serial, state, description] = m;

0 commit comments

Comments
 (0)