From aad99725aed8dac9e8a57d6991ecbb89eb7cbf87 Mon Sep 17 00:00:00 2001 From: Konstantin Gukov Date: Fri, 31 Jan 2025 14:27:49 +0100 Subject: [PATCH] Fix unicode dash --- checkov/common/runners/runner_registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkov/common/runners/runner_registry.py b/checkov/common/runners/runner_registry.py index a608807a05b..881f2183e47 100644 --- a/checkov/common/runners/runner_registry.py +++ b/checkov/common/runners/runner_registry.py @@ -488,7 +488,7 @@ def print_reports( ) # Remove colors from the cli output - ansi_escape = re.compile(r'(?:\x1B[@-_]|[\x80-\x9F])[0–9:;<=>?]*[ -/]*[@-~]') + ansi_escape = re.compile(r'(?:\x1B[@-_]|[\x80-\x9F])[0-9:;<=>?]*[ -/]*[@-~]') data_outputs['cli'] = ansi_escape.sub('', cli_output) if "sarif" in config.output: sarif = Sarif(reports=sarif_reports, tool=self.tool)