DCP: Escape command for RegEx
This commit is contained in:
@ -143,7 +143,7 @@ class Runner::Strategy::DockerContainerPool < Runner::Strategy
|
|||||||
# Identification of PyLint output, change stream back to stdout and return event
|
# Identification of PyLint output, change stream back to stdout and return event
|
||||||
@stream = 'stdout'
|
@stream = 'stdout'
|
||||||
{'type' => @stream, 'data' => event_data}
|
{'type' => @stream, 'data' => event_data}
|
||||||
when /#{@strategy.command}/
|
when /#{Regexp.quote(@strategy.command)}/
|
||||||
when /bash: cmd:canvasevent: command not found/
|
when /bash: cmd:canvasevent: command not found/
|
||||||
else
|
else
|
||||||
{'type' => @stream, 'data' => event_data}
|
{'type' => @stream, 'data' => event_data}
|
||||||
|
Reference in New Issue
Block a user