From 913a4665230d18e8588c0b1dcc63a46ff9429a8e Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Wed, 12 Feb 2020 19:50:59 +0100 Subject: [PATCH] fix js syntax --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 70c85bf..e488ac2 100644 --- a/index.js +++ b/index.js @@ -263,7 +263,7 @@ function updateImages(release, commit, model, image_link, mobj) { } function extractTags(prefix, file) { - var all = file.substring(len(prefix)).split('.')[0].split('-'); + var all = file.substring(prefix.length).split('.')[0].split('-'); var ignore = ['', 'kernel', 'zImage', 'uImage', 'factory', 'sysupgrade', 'rootfs', 'sdcard']; return all.filter(function (el) { return !ignore.includes(el); }); } -- 2.30.2