From 0fddde5126fc32b83ae2fef3c5eca71478103001 Mon Sep 17 00:00:00 2001 From: eric1tran Date: Mon, 7 Dec 2020 15:22:42 +0000 Subject: [PATCH] Make aircraft type filter case insensitive --- public_html/planeObject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/planeObject.js b/public_html/planeObject.js index dd7b6d2..4456600 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -110,8 +110,8 @@ function PlaneObject(icao) { PlaneObject.prototype.isFiltered = function() { // aircraft type filter - if (this.filter.aircraftTypeCode && this.icaotype !== null) { - if (typeof this.icaotype === 'string' && this.icaotype !== this.filter.aircraftTypeCode) { + if (this.filter.aircraftTypeCode) { + if (this.icaotype === null || (typeof this.icaotype === 'string' && this.icaotype.toUpperCase() !== this.filter.aircraftTypeCode.toUpperCase())) { return true; } }