Skip to content

Commit 551393f

Browse files
committed
fix uploadFiles duplication when uploading old-style
1 parent b1ae0e2 commit 551393f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

js/comms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ const Comms = {
291291
noACK: Const.PACKET_UPLOAD_NOACK
292292
});
293293
} else {
294-
return Comms.uploadCommandList(f.cmd, currentBytes, maxBytes).then(doUploadFiles);
294+
return Comms.uploadCommandList(f.cmd, currentBytes, maxBytes);
295295
}
296296
}
297297

lib/espruinotools.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6424,6 +6424,8 @@ return exports;})();
64246424
nextCh();escape += ch;
64256425
nextCh();escape += ch;
64266426
value += String.fromCharCode(parseInt(escape.substr(2), 16));
6427+
} else if (q=="/") { // just pass regex escape characters through to value
6428+
value += escape;
64276429
} else {
64286430
try {
64296431
value += JSON.parse('"'+escape+'"');

0 commit comments

Comments
 (0)