Skip to content

Commit

Permalink
fix escapeUrlDots
Browse files Browse the repository at this point in the history
  • Loading branch information
pnedelko committed Sep 8, 2023
1 parent 60e8350 commit 21cb168
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/utils/addCredentialsForComponentJson.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const _ = require("lodash");

function escapeUrlDots(url) {
return url.replace(/\./g, "%2E");
}

module.exports = {
escapeUrlDots: (url) => {
return url.replace(/\./g, "%2E");
},
escapeUrlDots,

/**
* Create a list of security schemes if they are not found in the original OpenAPI description
Expand Down

0 comments on commit 21cb168

Please sign in to comment.