mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 15:33:11 +01:00
Bugfix/openapi ensure url (#3183)
* added validations for spec and ref * openapi import - cleanup url --------- Co-authored-by: Anusree Subash <anusree@usebruno.com>
This commit is contained in:
parent
4ef5534d41
commit
3a58c6d3bd
@ -32,7 +32,7 @@ const readFile = (files) => {
|
||||
|
||||
const ensureUrl = (url) => {
|
||||
// emoving multiple slashes after the protocol if it exists, or after the beginning of the string otherwise
|
||||
return url.replace(/(^\w+:|^)\/{2,}/, '$1/');
|
||||
return url.replace(/([^:])\/{2,}/g, '$1/');
|
||||
};
|
||||
|
||||
const buildEmptyJsonBody = (bodySchema) => {
|
||||
|
Loading…
Reference in New Issue
Block a user