From c1ced1d4125a6124272fe11ba7a1d0b4bd73e20a Mon Sep 17 00:00:00 2001 From: BeniBenj Date: Thu, 2 May 2024 18:31:38 +0200 Subject: [PATCH] :lipstick: --- src/package.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/package.ts b/src/package.ts index 86459e62..36dba68b 100644 --- a/src/package.ts +++ b/src/package.ts @@ -422,12 +422,10 @@ function sanitizeCommitMessage(message?: string): string | undefined { return undefined; } + // Remove any unsafe characters found by the unsafeRegex // Check for characters that might escape quotes or introduce shell commands. // Don't allow: ', ", `, $, \ (except for \n which is allowed) - const unsafeRegex = /(?