From c44e73f0a5d28f422aa825bea2af51b2ea361e4a Mon Sep 17 00:00:00 2001 From: Francesco Renzi Date: Tue, 23 May 2023 15:03:32 +0100 Subject: [PATCH] Catch multiple instances --- packages/core/src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index 225e12ab..871308a8 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -97,7 +97,7 @@ export function exportVariable(name: string, val: any): void { * @param secret value of the secret */ export function setSecret(secret: string): void { - for (const part of secret.split(/[\r\n]/)) { + for (const part of secret.split(/[\r\n]+/)) { if (part) { issueCommand('add-mask', {}, part) }