From 2ad4eb76259d3334e01c458e989f37c6712323a5 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 18 Oct 2021 01:24:32 +0200 Subject: [PATCH] DCP: Escape command for RegEx --- lib/runner/strategy/docker_container_pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runner/strategy/docker_container_pool.rb b/lib/runner/strategy/docker_container_pool.rb index 8592b5dd..e1059d2e 100644 --- a/lib/runner/strategy/docker_container_pool.rb +++ b/lib/runner/strategy/docker_container_pool.rb @@ -143,7 +143,7 @@ class Runner::Strategy::DockerContainerPool < Runner::Strategy # Identification of PyLint output, change stream back to stdout and return event @stream = 'stdout' {'type' => @stream, 'data' => event_data} - when /#{@strategy.command}/ + when /#{Regexp.quote(@strategy.command)}/ when /bash: cmd:canvasevent: command not found/ else {'type' => @stream, 'data' => event_data}