Don't try to compute registrations on non-hex addresses (e.g. non-icao: ~123456)

This commit is contained in:
Oliver Jowett 2016-09-17 13:32:34 +01:00
parent 6e4eb4b35c
commit 662c19568e

View file

@ -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)