From 2addcbc48f5ecbe8c3025df09b9a795db9ae276e Mon Sep 17 00:00:00 2001 From: Oluwajuwon Date: Fri, 31 Jul 2026 18:37:38 +0100 Subject: [PATCH] sanitize carriage returns in test_parameters --- dot/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 dot/utils/utils.py diff --git a/dot/utils/utils.py b/dot/utils/utils.py old mode 100644 new mode 100755 index 3d44a65..d99972c --- a/dot/utils/utils.py +++ b/dot/utils/utils.py @@ -245,7 +245,7 @@ def get_configured_tests_row( test_params_clause = "" if test_parameters != "": test_params_clause = ( - f" AND regexp_replace(LOWER(CAST(test_parameters AS VARCHAR)), '\W+', '', 'g') = " + f" AND regexp_replace(LOWER(CAST(REPLACE(test_parameters::text, '\\r', '') AS VARCHAR)), '\\W+', '', 'g') = " f"'{prefix}{test_parameters.lower()}';" )