mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-15 20:01:28 +00:00
fix: sanitize authentication input
edgecase where value is null instead of expected empty string
This commit is contained in:
@@ -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(' ', ''));
|
||||
|
||||
Reference in New Issue
Block a user