Fixing regex

This commit is contained in:
David Négrier 2022-02-24 12:15:23 +01:00
parent 1b286002ff
commit c37046e138

View File

@ -38,7 +38,7 @@ export class SwaggerController extends BaseHttpController {
if (err) {
return response.status(500).send(err.message);
}
const result = data.replace(/https:\/\/petstore.swagger.io\/v2\/swagger.json/g, "/openapi");
const result = data.replace(/https:\/\/petstore\.swagger\.io\/v2\/swagger.json/g, "/openapi");
response.send(result);