Skip to content

Commit

Permalink
fix: ring indication response regex match
Browse files Browse the repository at this point in the history
  • Loading branch information
brendongitx committed Jul 27, 2022
1 parent 5a859c5 commit 3aafd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export class IridiumController extends TypedEmitter<IridiumControllerInterface>
description: 'Querying the ring indication status',
timeoutMs,
successRegex: OK_REGEXP,
bufferRegex: /^\+CRIS:[0-1]/,
bufferRegex: /^\+CRIS:[0-1]{3},[0-1]{3}/,
errorRegex: ERROR_REGEXP
}).then((result) => parseInt(result.split(',')[1]) as RingIndicationStatus)
}
Expand Down

0 comments on commit 3aafd6c

Please sign in to comment.