Don't try to compute registrations on non-hex addresses (e.g. non-icao: ~123456)
This commit is contained in:
parent
6e4eb4b35c
commit
662c19568e
|
@ -107,6 +107,9 @@ registration_from_hexid = (function () {
|
||||||
|
|
||||||
function lookup(hexid) {
|
function lookup(hexid) {
|
||||||
var hexid = +("0x" + hexid);
|
var hexid = +("0x" + hexid);
|
||||||
|
if (isNaN(hexid)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
reg = n_reg(hexid);
|
reg = n_reg(hexid);
|
||||||
if (reg)
|
if (reg)
|
||||||
|
|
Loading…
Reference in a new issue