Skip to content

Commit

Permalink
Merge pull request #925 from swagger-api/swos-240
Browse files Browse the repository at this point in the history
removed all non valid characters for  project name on python code
  • Loading branch information
HugoMario committed Jun 26, 2021
2 parents 2f6b0c8 + 47bfec1 commit db17070
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ public void processOpts() {
}

if (additionalProperties.containsKey(CodegenConstants.PROJECT_NAME)) {
setProjectName((String) additionalProperties.get(CodegenConstants.PROJECT_NAME));
String projectName = (String) additionalProperties.get(CodegenConstants.PROJECT_NAME);
setProjectName(projectName.replaceAll("[^a-zA-Z0-9\\s\\-_]",""));
}
else {
// default: set project based on package name
Expand Down

0 comments on commit db17070

Please sign in to comment.