Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 9d519e7

Browse files
committed
forbid comma in edge name
1 parent 2ebeea5 commit 9d519e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/features/dfdElements/editLabelValidator.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ export class DfdEditLabelValidator implements IEditLabelValidator {
3636
return { severity: "error", message: "Input name cannot contain spaces" };
3737
}
3838

39+
// Labels on edges are not allowed to commas in them
40+
if (value.includes(",")) {
41+
return { severity: "error", message: "Input name cannot contain commas" };
42+
}
43+
3944
// Labels on edges are not allowed to be empty
4045
if (value.length == 0) {
4146
return { severity: "error", message: "Input name cannot be empty" };

0 commit comments

Comments
 (0)