From 7ade494863dbcd0927b5b7cf26d09fe2db6db305 Mon Sep 17 00:00:00 2001 From: Bhavin Patel Date: Tue, 11 Jul 2023 14:16:33 -0500 Subject: [PATCH] check for howto --- .../contentctl_core/domain/entities/detection.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/contentctl_project/contentctl_core/domain/entities/detection.py b/bin/contentctl_project/contentctl_core/domain/entities/detection.py index 2f534bcd51..bc9ed22270 100644 --- a/bin/contentctl_project/contentctl_core/domain/entities/detection.py +++ b/bin/contentctl_project/contentctl_core/domain/entities/detection.py @@ -142,11 +142,14 @@ class Detection(BaseModel, SecurityContentObject): @root_validator - def description_new_line_check(cls, values): - # Check if there is a new line in description that is not escaped + def new_line_check(cls, values): + # Check if there is a new line in description and how to implement that is not escaped pattern = r'(?