We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6b0c65 commit 2ef83a8Copy full SHA for 2ef83a8
lib/IcaoDecoder.ts
@@ -66,9 +66,8 @@ export class IcaoDecoder {
66
isMilitary(): boolean {
67
const i = this.icao;
68
const n = parseInt(i, 16);
69
- // Range checks only
70
for (const [start, end] of IcaoDecoder.MILITARY_RANGES) {
71
- if (n >= start && n <= end) {
+ if (start <= n && n <= end) {
72
return true;
73
}
74
0 commit comments