Closed glowcloud closed 4 months ago
We need to escape regular expressions which are built with values passed by the user:
https://github.com/swagger-api/swagger-js/blob/43e55ec1d20c52b4b2410625c2db470082100c98/src/execute/index.js#L356
For this, we can use escapeRegExp function from the ramda-adjunct library.
escapeRegExp
Addressed in https://github.com/swagger-api/swagger-js/pull/3506
We need to escape regular expressions which are built with values passed by the user:
https://github.com/swagger-api/swagger-js/blob/43e55ec1d20c52b4b2410625c2db470082100c98/src/execute/index.js#L356
For this, we can use
escapeRegExp
function from the ramda-adjunct library.