Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
c8108e1c4This file is pinned to the selected release. Download the original to open it in your design tool.
class GrblHalLineParserResultJSON {
static parse(line) {
// {...} json line
const r = line.match(/^({.*})$/);
if (!r) {
return null;
}
const payload = {
code: r[1],
};
console.log(payload);
return {
type: GrblHalLineParserResultJSON,
payload: payload,
};
}
}
export default GrblHalLineParserResultJSON;