From: Moritz Warning Date: Wed, 12 Feb 2020 18:50:59 +0000 (+0100) Subject: fix js syntax X-Git-Tag: v1.0.0~19 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=913a4665230d18e8588c0b1dcc63a46ff9429a8e;p=web%2Ffirmware-selector-openwrt-org.git fix js syntax --- 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); }); }