MCPcopy Create free account
hub / github.com/BruceDevices/firmware / getSerialCommand

Function getSerialCommand

embedded_resources/web_interface/index.js:293–301  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

291}
292
293function getSerialCommand(fileName) {
294 let extension = fileName.split(".");
295 if (extension.length > 1) {
296 extension = extension[extension.length - 1].toLowerCase();
297 return EXECUTABLE[extension];
298 }
299
300 return undefined;
301}
302
303function calcHash(str) {
304 let hash = 5381;

Callers 3

renderFileRowFunction · 0.85
saveEditorFileFunction · 0.85
index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected