Fixed issue #480 - better protection against bad pattern matching.

This commit is contained in:
mvandervoord
2020-03-17 16:24:25 -04:00
parent f61a7ea8e4
commit 371e062555

View File

@ -465,13 +465,13 @@ if $0 == __FILE__
when '-cexception'
options[:plugins] = [:cexception]
true
when /\.*\.ya?ml/
when /\.*\.ya?ml$/
options = UnityTestRunnerGenerator.grab_config(arg)
true
when /--(\w+)=\"?(.*)\"?/
options[Regexp.last_match(1).to_sym] = Regexp.last_match(2)
true
when /\.*\.h/
when /\.*\.(?:hpp|hh|H|h)$/
options[:includes] << arg
true
else false