Skip to content

Commit

Permalink
fix: parse adb devices with trailing CR
Browse files Browse the repository at this point in the history
  • Loading branch information
aizensoosuke committed Jul 29, 2024
1 parent e9f573f commit e47beb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/utils/adb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e47beb6

Please sign in to comment.