Merge branch 'mrbeam' of https://github.com/mrbeam/OctoPrint into mrbeam

This commit is contained in:
make-ing 2015-09-24 14:05:32 +02:00
commit b5a80db874

View file

@ -162,7 +162,8 @@ $(function() {
}
// var re = /^([gmt][0-9]+)(\s.*)?/;
var re = /^([gmtfs][0-9]+|\$[cinhgx#$]|[?~!])(.*)?/; // grbl style
// gcode words | $ commands | RT | /debug
var re = /^([gmtfs][0-9]+|\$[cinhgx#$]|[?~!]|\/)(.*)?/; // grbl style
var commandMatch = command.match(re);
if (commandMatch != null) {
command = commandMatch[1].toUpperCase() + ((commandMatch[2] !== undefined) ? commandMatch[2] : "");