Merge branch 'dev' into master

This commit is contained in:
James Wilson 2017-02-10 14:53:06 -06:00 committed by GitHub
commit 3a819a5aeb
25 changed files with 2091 additions and 613 deletions

View file

@ -1609,7 +1609,7 @@ function getFlightAwareModeSLink(code, ident, linkText) {
function getFlightAwarePhotoLink(registration) {
if (registration !== null && registration !== "") {
return "<a target=\"_blank\" href=\"https://flightaware.com/photos/aircraft/" + registration.trim() + "\">See Aircraft Photos</a>";
return "<a target=\"_blank\" href=\"https://flightaware.com/photos/aircraft/" + registration.replace(/[^0-9a-z]/ig,'') + "\">See Aircraft Photos</a>";
}
return "";