Skip to content

Commit

Permalink
fix(export): layer names with ’ cause export crash (ogre). (#1146)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre-Étienne Lord <[email protected]>
  • Loading branch information
2 people authored and cbourget committed Mar 21, 2023
1 parent 7792c3a commit 3377754
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export class ExportService {
outputName = `${title}.csv`;
}
outputName = outputName.replace(' ', '_');
outputName = outputName.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
outputName = outputName.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(//g, "'");
outputNameField.setAttribute('type', 'hidden');
outputNameField.setAttribute('name', 'outputName');
outputNameField.setAttribute('value', outputName);
Expand Down

0 comments on commit 3377754

Please sign in to comment.