Skip to content

Commit 96ec27e

Browse files
committed
forbid comma in edge name
1 parent b060477 commit 96ec27e

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)