Skip to content

Commit

Permalink
[chore] update dependencies and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Mollweide committed Sep 28, 2018
1 parent 8b4e922 commit 74ea883
Show file tree
Hide file tree
Showing 4 changed files with 959 additions and 932 deletions.
2 changes: 2 additions & 0 deletions lib/SwaggerImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ SwaggerImport.prototype = extend(SwaggerImport.prototype, {
_buildOptions: function () {
var opt = this._options;
var protocol = opt.protocol;

// eslint-disable-next-line
if (/http$|https$/.test(protocol)) {
protocol += ':';
}
Expand Down
1 change: 1 addition & 0 deletions lib/controller/MockController.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ MockController.prototype = extend(MockController.prototype, {
pathSpl.forEach(function (pathItem, index) {
var pathPatterItem = pathPatterSpl[index];

// eslint-disable-next-line
if (/({)(.*)(})/.test(pathPatterItem)) {
pathSpl[index] = pathPatterItem;
}
Expand Down

0 comments on commit 74ea883

Please sign in to comment.