diff --git a/lib/utils/addCredentialsForComponentJson.js b/lib/utils/addCredentialsForComponentJson.js index a5674fa..19033d6 100644 --- a/lib/utils/addCredentialsForComponentJson.js +++ b/lib/utils/addCredentialsForComponentJson.js @@ -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