From e1455401320147daa9d5c0bc38794a103ee64ed1 Mon Sep 17 00:00:00 2001 From: Paulo Castro Date: Wed, 29 May 2019 23:37:13 +0100 Subject: [PATCH] Allow newline characters in build/deploy --buildArg values Change-type: patch Signed-off-by: Paulo Castro --- lib/utils/docker.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/docker.coffee b/lib/utils/docker.coffee index b9456917..47df4dfa 100644 --- a/lib/utils/docker.coffee +++ b/lib/utils/docker.coffee @@ -130,7 +130,8 @@ parseBuildArgs = (args) -> args = [ args ] buildArgs = {} args.forEach (arg) -> - pair = /^([^\s]+?)=(.*)$/.exec(arg) + # note: [^] matches any character, including line breaks + pair = /^([^\s]+?)=([^]*)$/.exec(arg) if pair? buildArgs[pair[1]] = pair[2] ? '' else