Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
b6d6e761eThis file is pinned to the selected release. Download the original to open it in your design tool.
export const checkIfRotaryFile = (gcode) => {
const commentMatcher = /\s*;.*/g;
const bracketCommentLine = /\([^)]*\)/gm;
const content = gcode
.replace(bracketCommentLine, "")
.trim()
.replace(commentMatcher, "")
.trim();
return content.includes("A");
};