Skip to content

Commit

Permalink
allow ` escaping in Gui commands
Browse files Browse the repository at this point in the history
  • Loading branch information
phil294 committed Dec 2, 2022
1 parent f7ca35c commit bf0c5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build/parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module Build
# Gui accepts many subcommands. Instead of duplicating parsing logic into a generic
# `Gui` cmd, instead join together (e.g. `GuiAdd`) and parse line again with that.
# All subcommands exist as standalone commands and expect the gui id as 1st arg.
split = split_args(args, 2)
split = args.split(',', 2).map &.strip
sub_instruction = split[0]? || ""
rest_args = split[1]? || ""
match = sub_instruction.match(/(?:(\S+)\s*:\s*)?(.*)/).not_nil!
Expand Down

0 comments on commit bf0c5bc

Please sign in to comment.