Commit 7b4083c3 authored by Maximilian Mayr's avatar Maximilian Mayr
Browse files

[typescript] fix issue with special characters

Fix issue where special characters such as @ get stripped.
1 merge request!9940[typescript] fix issue with special characters
Pipeline #564 failed with stages
Showing with 1 addition and 1 deletion
+1 -1
......@@ -345,7 +345,7 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
@Override
public String toVarName(String name) {
name = sanitizeName(name, "[^\\w$]");
name = sanitizeName(name, "^[^\\w_$@]*|[^\\w$]");
if ("_".equals(name)) {
name = "_u";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment