Skip to content

Commit d30fb0a

Browse files
committed
Updated logic to extract the file extension
1 parent d160155 commit d30fb0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/daemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default class Daemon {
130130
})
131131
.then(result => result.json())
132132
.then(uploadCommandInfo => {
133-
const projectNameIndex = uploadCommandInfo.commandline.indexOf('{build.project_name}');
133+
const projectNameIndex = uploadCommandInfo.commandline.lastIndexOf('{build.project_name}');
134134
let ext = uploadCommandInfo.commandline.substring(projectNameIndex + 21, projectNameIndex + 24);
135135
const data = compilationResult[ext] || compilationResult.bin;
136136
if (!ext || !data) {

0 commit comments

Comments
 (0)