-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[typescript-angular] Invalid regular expression error #6566
Comments
@wing328 I think we need to add some basic tests for angular and run them on CI in order to avoid this kind of bugs. What do you say? |
@taxpon definitely. It's better to rely on CI to catch similar issue moving forward. |
Btw, |
+1 |
+1 - also worth mentioning that |
There is a PR to use the new one by default and optionally use the old one
…On Wed, Sep 27, 2017, 9:09 AM Gabriel Imre ***@***.***> wrote:
+1 - also worth mentioning that typescript-angular is still using the old
and about-to-be-deprecated HttpModule instead of HttpClientModule
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6566 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMPLtcq97Egsb1Mia38sExaUTNXyhysLks5smkjygaJpZM4Pj3EQ>
.
|
Description
The code generated from the following template results in a runtime error,
Invalid regular expression: /(?i)^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$/: Invalid group
swagger-codegen/modules/swagger-codegen/src/main/resources/typescript-angular/api.service.mustache
Line 82 in d2b9107
Swagger-codegen version
Master branch (2.3.0)
Steps to reproduce
Paste the regular expression in Chrome Developer console, and Chrome raises the syntax error.
The text was updated successfully, but these errors were encountered: