Skip to content

Commit

Permalink
Fix: Regex allowed empty labeltype/values
Browse files Browse the repository at this point in the history
  • Loading branch information
01Parzival10 committed Oct 11, 2024
1 parent 0f801f9 commit 24af14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/dfdElements/outputPortBehaviorValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class PortBehaviorValidator {

// Regex that validates a term
// Has the label type and label value that should be set as capturing groups.
private static readonly TERM_REGEX = /^(\s*|!|TRUE|FALSE|\|\||&&|\(|\)|([A-Za-z0-9_]*\.[A-Za-z0-9_]*))+$/;
private static readonly TERM_REGEX = /^(\s*|!|TRUE|FALSE|\|\||&&|\(|\)|([A-Za-z0-9_]+\.[A-Za-z0-9_]+))+$/;

private static readonly LABEL_REGEX = /([A-Za-z0-9_]+)\.([A-Za-z0-9_]+)/g;

Expand Down

0 comments on commit 24af14f

Please sign in to comment.