mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-07-04 16:56:29 +08:00
Fixed issue #480 - better protection against bad pattern matching.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user