Skip to content

Commit 6386031

Browse files
committed
Comments
1 parent c421493 commit 6386031

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/shared/utils.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ export function remapKeys(mapping, object) {
227227
return newObj;
228228
}
229229

230+
/**
231+
* Normalizes Description fields from various formats into a plain string.
232+
* @param {object} description
233+
* @returns {string} Normalized description text
234+
*/
230235
export function normalizeDescription(description) {
231236
if (typeof description === "string") return description;
232237
if (Array.isArray(description)) return normalizeDescription(description[0]);

0 commit comments

Comments
 (0)