fix: sanitize authentication input

edgecase where value is null instead of expected empty string
This commit is contained in:
Jake Owen 2024-10-12 01:14:29 +01:00
parent dce96e0f13
commit bd8432e4e0

View File

@ -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(' ', ''));