We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c421493 commit 6386031Copy full SHA for 6386031
src/shared/utils.js
@@ -227,6 +227,11 @@ export function remapKeys(mapping, object) {
227
return newObj;
228
}
229
230
+/**
231
+ * Normalizes Description fields from various formats into a plain string.
232
+ * @param {object} description
233
+ * @returns {string} Normalized description text
234
+ */
235
export function normalizeDescription(description) {
236
if (typeof description === "string") return description;
237
if (Array.isArray(description)) return normalizeDescription(description[0]);
0 commit comments