From 4cca5f6f80e97259db3dc9bd307348f08c91133b Mon Sep 17 00:00:00 2001 From: Huell Date: Fri, 11 Oct 2024 15:04:42 +0200 Subject: [PATCH] Fix: Regex allowed empty labeltype/values for outlabels --- src/features/dfdElements/outputPortBehaviorValidation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/dfdElements/outputPortBehaviorValidation.ts b/src/features/dfdElements/outputPortBehaviorValidation.ts index 8b6f469..a8377c1 100644 --- a/src/features/dfdElements/outputPortBehaviorValidation.ts +++ b/src/features/dfdElements/outputPortBehaviorValidation.ts @@ -23,7 +23,7 @@ export class PortBehaviorValidator { // Regex that validates assignments // Matches "Assignment({input_Pins};TERM_REGEX;{out_Label})" private static readonly ASSIGNMENT_REGEX = - /^Assignment\(\{(([A-Za-z0-9_][A-Za-z0-9_\|]+(,\s*[A-Za-z0-9_\|]+)*)?)\};(\s*|!|TRUE|FALSE|\|\||&&|\(|\)|([A-Za-z0-9_]*\.[A-Za-z0-9_]*))+;\{(((([A-Za-z0-9_]*)\.[A-Za-z0-9_]*)+(,\s*([A-Za-z0-9_]*\.[A-Za-z0-9_]*))*)?)\}\)+$/; + /^Assignment\(\{(([A-Za-z0-9_][A-Za-z0-9_\|]+(,\s*[A-Za-z0-9_\|]+)*)?)\};(\s*|!|TRUE|FALSE|\|\||&&|\(|\)|([A-Za-z0-9_]*\.[A-Za-z0-9_]*))+;\{(((([A-Za-z0-9_]+)\.[A-Za-z0-9_]+)+(,\s*([A-Za-z0-9_]+\.[A-Za-z0-9_]+))*)?)\}\)+$/; // Regex that validates forwarding // Matches "Forwarding({input_pins})"