Skip to content

Commit 24af14f

Browse files
committed
Fix: Regex allowed empty labeltype/values
1 parent 0f801f9 commit 24af14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/dfdElements/outputPortBehaviorValidation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class PortBehaviorValidator {
3232

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

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

0 commit comments

Comments
 (0)