fmvilas / swagger-node-codegen

An OpenAPI 3.x/Swagger 2 code generator for Node.js
Apache License 2.0
200 stars 55 forks source link

Replace only picks first instance of string #23

Closed royletron closed 6 years ago

royletron commented 6 years ago

Unless you use a regex! This meant that paths with lots of parameters were only seeing the first two instances being replaced seeing things like:

/:username/projects/:project/analyses/{lastAnalysisNumber}/differential

fmvilas commented 6 years ago

Thanks @royletron! LGTM, what do you think @richardklose?

richardklose commented 6 years ago

Good fix. Great @royletron!

fmvilas commented 6 years ago

Released and published on npm. Thanks @royletron.