Skip to content

Commit 2459eb0

Browse files
authored
Fix: outputPortBehaviorValidation.ts Regex
1 parent f5be7ec commit 2459eb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/dfdElements/outputPortBehaviorValidation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ export class PortBehaviorValidator {
2323
// Regex that validates a set statement.
2424
// Has the label type and label value that should be set as capturing groups.
2525
private static readonly SET_REGEX =
26-
/^set +([A-Za-z][A-Za-z0-9_]*)\.([A-Za-z][A-Za-z0-9_]*) *= *(?: +|!|TRUE|FALSE|\|\||&&|\(|\)|[A-Za-z][A-Za-z0-9_\|]*(?:\.[A-Za-z][A-Za-z0-9_\|]*){2})+$/;
26+
/^set +([A-Za-z][A-Za-z0-9_]*)\.([A-Za-z][A-Za-z0-9_]*) *= *(?: +|!|TRUE|FALSE|\|\||&&|\(|\)|[A-Za-z][A-Za-z0-9_\|]*(?:\.[A-Za-z][A-Za-z0-9_]*){2})+$/;
2727
// Regex that is used to extract all inputs, their label types and label values from a set statement.
2828
// Each input is a match with the input name, label type and label value as capturing groups.
2929
private static readonly SET_REGEX_EXPRESSION_INPUTS =
30-
/([A-Za-z][A-Za-z0-9_\|]*)\.([A-Za-z][A-Za-z0-9_\|]*)\.([A-Za-z][A-Za-z0-9_\|]*)/g;
30+
/([A-Za-z][A-Za-z0-9_\|]*)\.([A-Za-z][A-Za-z0-9_]*)\.([A-Za-z][A-Za-z0-9_]*)/g;
3131
// Regex matching alphanumeric characters.
3232
public static readonly REGEX_ALPHANUMERIC = /[A-Za-z0-9_\|]+/;
3333

0 commit comments

Comments
 (0)