From f6eb2472f2d900627db9f58aaf7d354a857fbff8 Mon Sep 17 00:00:00 2001 From: BeniBenj Date: Thu, 2 May 2024 16:22:12 +0200 Subject: [PATCH] :lipstick: --- src/package.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/package.ts b/src/package.ts index fa9621b2..3e67b4a4 100644 --- a/src/package.ts +++ b/src/package.ts @@ -422,12 +422,11 @@ function sanitizeCommitMessage(message?: string): string | undefined { return undefined; } - // Allow alphanumeric, space, common punctuation, newline characters. - // Specifically check for characters that might escape quotes or introduce shell commands. - // Newlines are allowed, but backslashes (other than for newlines), backticks, and dollar signs are still checked. + // Check for characters that might escape quotes or introduce shell commands. + // Don't allow: ', ", `, $, \ (except for \n) const unsafeRegex = /(?