Skip to content

Commit eeeae7e

Browse files
committed
Update gateway.js
1 parent c1482ab commit eeeae7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ global.getNodeIcons = function(dir, files_, steps){
218218
var name = dir + '/' + files[i];
219219
if (fs.statSync(name).isDirectory() && steps==0) //recurse 1 level only
220220
getNodeIcons(name, files_, steps+1);
221-
else if (files[i].match(/^icon_\w*\.(bmp|png|jpg|jpeg|ico)$/ig)) //images only
221+
else if (files[i].match(/^icon_.+\.(bmp|png|jpg|jpeg|ico)$/ig)) //images only
222222
files_.push(name.replace(__dirname+'/www/images/',''));
223223
}
224224
return files_;

0 commit comments

Comments
 (0)