Skip to content

Commit cf15587

Browse files
committed
allow numeric airline code
1 parent b94adf3 commit cf15587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MessageDecoder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class MessageDecoder {
9494
// C-Band puts a 10 char header in front of some message types
9595
// First 4 chars are some kind of message number
9696
// Last 6 chars are the flight number
97-
let cband = message.text.match(/^(?<msgno>[A-Z]\d{2}[A-Z])(?<airline>[A-Z]{2})(?<number>[0-9]{4})/);
97+
let cband = message.text.match(/^(?<msgno>[A-Z]\d{2}[A-Z])(?<airline>[A-Z0-9]{2})(?<number>[0-9]{4})/);
9898
if (cband?.groups) {
9999
message.text = message.text.substring(10);
100100
}

0 commit comments

Comments
 (0)