RED-5741: Fixed special characters showing when there's a duplicate technical name.
This commit is contained in:
parent
db6f58e489
commit
73268f65c9
@ -203,7 +203,7 @@ export class AddEditEntityComponent extends BaseFormComponent implements OnInit
|
||||
let technicalName = baseTechnicalName.replaceAll(/[^A-Za-z0-9_-]/g, '');
|
||||
let suffix = 1;
|
||||
while (existingTechnicalNames.includes(technicalName)) {
|
||||
technicalName = [baseTechnicalName, suffix++].join('_');
|
||||
technicalName = [technicalName, suffix++].join('_');
|
||||
}
|
||||
return technicalName;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user