From bd8432e4e067756385e2b7192c6e5e7c9dd81ca2 Mon Sep 17 00:00:00 2001 From: Jake Owen Date: Sat, 12 Oct 2024 01:14:29 +0100 Subject: [PATCH] fix: sanitize authentication input edgecase where value is null instead of expected empty string --- packages/bruno-app/src/utils/importers/insomnia-collection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bruno-app/src/utils/importers/insomnia-collection.js b/packages/bruno-app/src/utils/importers/insomnia-collection.js index ae74f1613..f936c196d 100644 --- a/packages/bruno-app/src/utils/importers/insomnia-collection.js +++ b/packages/bruno-app/src/utils/importers/insomnia-collection.js @@ -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(' ', ''));