Loading files
This 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');
};
4b4292b82This file is pinned to the selected release. Download the original to open it in your design tool.