From 119f6607d90f57a85ab6e8ddea8a6d6d25fd7c40 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Tue, 2 Apr 2024 19:28:29 -0400 Subject: [PATCH] Don't need to escape symbols in brackets --- lib/cmock.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmock.rb b/lib/cmock.rb index 0f6a950..0e5cc7a 100644 --- a/lib/cmock.rb +++ b/lib/cmock.rb @@ -99,7 +99,7 @@ if $0 == __FILE__ # --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