mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-09-12 13:19:59 +00:00
Fixed issue #480 - better protection against bad pattern matching.
This commit is contained in:
@@ -465,13 +465,13 @@ if $0 == __FILE__
|
|||||||
when '-cexception'
|
when '-cexception'
|
||||||
options[:plugins] = [:cexception]
|
options[:plugins] = [:cexception]
|
||||||
true
|
true
|
||||||
when /\.*\.ya?ml/
|
when /\.*\.ya?ml$/
|
||||||
options = UnityTestRunnerGenerator.grab_config(arg)
|
options = UnityTestRunnerGenerator.grab_config(arg)
|
||||||
true
|
true
|
||||||
when /--(\w+)=\"?(.*)\"?/
|
when /--(\w+)=\"?(.*)\"?/
|
||||||
options[Regexp.last_match(1).to_sym] = Regexp.last_match(2)
|
options[Regexp.last_match(1).to_sym] = Regexp.last_match(2)
|
||||||
true
|
true
|
||||||
when /\.*\.h/
|
when /\.*\.(?:hpp|hh|H|h)$/
|
||||||
options[:includes] << arg
|
options[:includes] << arg
|
||||||
true
|
true
|
||||||
else false
|
else false
|
||||||
|
|||||||
Reference in New Issue
Block a user