Split using RegEx - Cleaner
This commit is contained in:
parent
c9e8a2b76c
commit
f00ea284cb
|
@ -62,8 +62,10 @@ $(function() {
|
|||
}
|
||||
|
||||
expanded = self.macro.replace(paramObjRegex, replaceParams)
|
||||
expanded = "[\"" + expanded + "\"]"
|
||||
expanded = expanded.replace(/(?:\r\n|\r|\n)/g, "\",\"");
|
||||
// expanded = "[\"" + expanded + "\"]"
|
||||
// expanded = expanded.replace(/(?:\r\n|\r|\n)/g, "\",\"");
|
||||
// Split using RegEx - cleaner
|
||||
expanded = expanded.split(/\r\n|\r|\n/);
|
||||
|
||||
OctoPrint.control.sendGcode(expanded);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue