Fixing regex
This commit is contained in:
parent
1b286002ff
commit
c37046e138
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user