chore: add comment

This commit is contained in:
Catalin Pit
2026-06-19 10:36:48 +03:00
parent 25eb4ffedf
commit dac262edc9
+7
View File
@@ -108,6 +108,13 @@ const unescapePlaceholderValue = (value: string): string => {
return value.replace(/\\([,=|\\])/g, '$1');
};
/*
Cleans up a selection option/default after splitting:
unescapes literal delimiters, collapses repeated whitespace, and trims the ends.
E.g.
' Legal\, Compliance ' -> 'Legal, Compliance'
*/
const normalizePlaceholderSelectionValue = (value: string): string => {
return unescapePlaceholderValue(value).replace(/\s+/g, ' ').trim();
};