From da93c5c6a3fa44b546cef64945ba134bdf6662c0 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sat, 20 Feb 2021 17:48:55 +0100 Subject: [PATCH] Update metadata.mjs --- source/app/metrics/metadata.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/app/metrics/metadata.mjs b/source/app/metrics/metadata.mjs index 253a5ad3..72fa5f8c 100644 --- a/source/app/metrics/metadata.mjs +++ b/source/app/metrics/metadata.mjs @@ -212,7 +212,7 @@ return {text, type:"text", placeholder:example ?? defaulted, defaulted} case "string":{ if (Array.isArray(values)) - return {text, type:"select", values} + return {text, type:"select", values, defaulted} return {text, type:"text", placeholder:example ?? defaulted, defaulted} } case "json": @@ -267,7 +267,7 @@ return { name:raw.match(/^### (?[\s\S]+?)\n/)?.groups?.name?.trim(), readme:{ - demo:raw.match(/(?[\s\S]*?<[/]table>)/)?.groups?.demo?.replace(/<[/]?(?:table|tr)>/g, "")?.trim() ?? (name === "community" ? "" : ""), + demo:raw.match(/(?

See documentation 🌍

[\s\S]*?<[/]table>)/)?.groups?.demo?.replace(/<[/]?(?:table|tr)>/g, "")?.trim() ?? (name === "community" ? "" : ""), compatibility:{...compatibility, base:true}, }, }
See documentation 🌍