remove leading periods from the registration

This commit is contained in:
Jakob Ketterl 2023-09-05 23:26:13 +02:00
parent 6979630653
commit 198f3ff078

View file

@ -536,7 +536,7 @@ HfdlMessagePanel.prototype.pushMessage = function(message) {
var acars = hfnpdu['acars'];
details = '<h4>ACARS message</h4>';
details += '<div>Flight: ' + acars['flight'] + '</div>';
details += '<div>Registration: ' + acars['reg'] + '</div>';
details += '<div>Registration: ' + acars['reg'].replace(/^\.+/g, '') + '</div>';
details += '<div class="acars-message">' + acars['msg_text'] + '</div>';
}
}