From 056c70e870e0466a9ab90f64ab73d0912285ca36 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Fri, 21 Feb 2020 20:27:25 +0100 Subject: [PATCH] ingore character case for tags --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a312d75..38a0bb8 100644 --- a/index.js +++ b/index.js @@ -370,8 +370,8 @@ function updateImages(version, commit, model, url, mobj, is_custom) { function extractTags(prefix, image) { var all = image.substring(prefix.length).split('.')[0].split('-'); - var ignore = ['', 'kernel', 'zImage', 'uImage', 'factory', 'sysupgrade', 'rootfs', 'sdcard']; - return all.filter(function (el) { return !ignore.includes(el); }); + var ignore = ['', 'kernel', 'zimage', 'uimage', 'factory', 'sysupgrade', 'rootfs', 'sdcard']; + return all.filter(function (el) { return !ignore.includes(el.toLowerCase()); }); } for (var category in entries) { -- 2.30.2