Merge branch 'maintenance' into devel
This commit is contained in:
commit
fe1db28bdf
1 file changed
-4
@@ -522,10 +522,6 @@ $(function () {
|
||||
var findThis = self.settings.settings.plugins.gcodeviewer.skipUntilThis();
|
||||
if (findThis && findThis !== "") {
|
||||
var indexPos = response.indexOf("\n" + findThis);
|
||||
// Try windows newlines if not found
|
||||
if (indexPos === -1) {
|
||||
indexPos = response.indexOf("\r" + findThis);
|
||||
}
|
||||
if (indexPos !== -1) {
|
||||
// Slice and make sure we comment out any string left back after slicing - so if a user configures something like "G1" we dont end up with a snippet of gcode commands
|
||||
// Yes it would be prettier to parse it line by line and remove the entire line, that is very slow and uses mem - this way we find the string, and remove it
|
||||
|
||||
Reference in new issue
Block a user