Skip to content

Commit

Permalink
Merge pull request #1090 from dholth/patch-1
Browse files Browse the repository at this point in the history
Allow spaces between X(space)Coordinate
  • Loading branch information
kliment authored Aug 20, 2020
2 parents ca7ab2a + 0511ce6 commit 1321acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion printrun/gcoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
gcode_parsed_args = ["x", "y", "e", "f", "z", "i", "j"]
gcode_parsed_nonargs = ["g", "t", "m", "n"]
to_parse = "".join(gcode_parsed_args + gcode_parsed_nonargs)
gcode_exp = re.compile("\([^\(\)]*\)|;.*|[/\*].*\n|([%s])([-+]?[0-9]*\.?[0-9]*)" % to_parse)
gcode_exp = re.compile("\([^\(\)]*\)|;.*|[/\*].*\n|([%s])\s*([-+]?[0-9]*\.?[0-9]*)" % to_parse)
gcode_strip_comment_exp = re.compile("\([^\(\)]*\)|;.*|[/\*].*\n")
m114_exp = re.compile("\([^\(\)]*\)|[/\*].*\n|([XYZ]):?([-+]?[0-9]*\.?[0-9]*)")
specific_exp = "(?:\([^\(\)]*\))|(?:;.*)|(?:[/\*].*\n)|(%s[-+]?[0-9]*\.?[0-9]*)"
Expand Down

0 comments on commit 1321acf

Please sign in to comment.