Skip to content

Commit

Permalink
Don't need to escape symbols in brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandervoord committed Apr 2, 2024
1 parent df73448 commit 119f660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def option_maker(options, key, val)
# --strippables are dealt with separately since the user is allowed to
# enter any valid regular expression as argument
options = option_maker(options, 'strippables', Regexp.last_match(1))
when /^--([a-zA-Z0-9._\\\/:\s]+)="?([a-zA-Z0-9._\-\\\/:\s;@#%!$&\(\)\*]*)"?/x
when /^--([a-zA-Z0-9._\\\/:\s]+)="?([a-zA-Z0-9._\-\\\/:\s;@#%!$&()*]*)"?/x
options = option_maker(options, Regexp.last_match(1),
Regexp.last_match(2))
else
Expand Down

0 comments on commit 119f660

Please sign in to comment.