Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenAPI Tools
openapi-generator
Commits
7b4083c3
Commit
7b4083c3
authored
4 years ago
by
Maximilian Mayr
Browse files
Options
Download
Email Patches
Plain Diff
[typescript] fix issue with special characters
Fix issue where special characters such as @ get stripped.
parent
519ab929
github/fork/tributech-solutions/fix-typecript-special-chars
1 merge request
!9940
[typescript] fix issue with special characters
Pipeline
#564
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractTypeScriptClientCodegen.java
+1
-1
...ls/codegen/languages/AbstractTypeScriptClientCodegen.java
with
1 addition
and
1 deletion
+1
-1
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractTypeScriptClientCodegen.java
+
1
-
1
View file @
7b4083c3
...
...
@@ -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"
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets