mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 08:34:15 +01:00
fix: failing to import insomnia collection when username/password in auth is null (#3293)
* fix: sanitize authentication input
edgecase where value is null instead of expected empty string
* fix: refactor to be immutable
* Revert "fix: refactor to be immutable"
This reverts commit eec0e51d98
.
This commit is contained in:
parent
dce96e0f13
commit
2fc79e0e7f
@ -60,6 +60,7 @@ const addSuffixToDuplicateName = (item, index, allItems) => {
|
||||
const regexVariable = new RegExp('{{.*?}}', 'g');
|
||||
|
||||
const normalizeVariables = (value) => {
|
||||
value = value || '';
|
||||
const variables = value.match(regexVariable) || [];
|
||||
each(variables, (variable) => {
|
||||
value = value.replace(variable, variable.replace('_.', '').replaceAll(' ', ''));
|
||||
|
Loading…
Reference in New Issue
Block a user