projects
/
web
/
firmware-selector-openwrt-org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
508791f
)
fix js syntax
author
Moritz Warning
<moritzwarning@web.de>
Wed, 12 Feb 2020 18:50:59 +0000
(19:50 +0100)
committer
Moritz Warning
<moritzwarning@web.de>
Wed, 12 Feb 2020 18:50:59 +0000
(19:50 +0100)
index.js
patch
|
blob
|
history
diff --git
a/index.js
b/index.js
index 70c85bf2a357127b432b0a49e8e7122217ccf85c..e488ac27961b86b36609ff56c17574abe67aafd9 100644
(file)
--- 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); });
}