-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Milestone
Description
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
const jsonMime: RegExp = new RegExp('(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$'); |
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.
yissachar