Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #44 from BiteBit/2.0.2
Browse files Browse the repository at this point in the history
fix(Api-Explorer): Fix issue #43
  • Loading branch information
amazing-gao committed Jun 23, 2018
2 parents 575486e + 589b30a commit 6f11e25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "koa-oai-router",
"version": "2.0.1",
"version": "2.0.2",
"main": "lib",
"scripts": {
"clean": "rm -rf coverage lib",
Expand Down
2 changes: 1 addition & 1 deletion src/swagger.js
Expand Up @@ -15,7 +15,7 @@ util.each(filesInfo, (fileName, alias) => {
let content = fs.readFileSync(`${absolutePath()}/${fileName}`).toString();

if (alias === 'index') {
const oldSegment = 'url: "http://petstore.swagger.io/v2/swagger.json",';
const oldSegment = /url: "(http|https):\/\/petstore\.swagger\.io\/v2\/swagger\.json",/;
const newSegment = 'configUrl: "./api-explorer-config.json",';
content = content.replace(oldSegment, newSegment);
}
Expand Down

0 comments on commit 6f11e25

Please sign in to comment.