From 0ab87b03fa35bc6bd2914e505edee3de9703d1b9 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Mon, 20 Sep 2021 22:05:27 -0400 Subject: [PATCH] remove dashes from animation descriptions --- custom-elements-manifest.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom-elements-manifest.config.js b/custom-elements-manifest.config.js index 0d4be0ff..1d628644 100644 --- a/custom-elements-manifest.config.js +++ b/custom-elements-manifest.config.js @@ -3,6 +3,7 @@ import commentParser from 'comment-parser'; const packageData = JSON.parse(fs.readFileSync('./package.json', 'utf8')); const { name, description, version, author, homepage, license } = packageData; +const noDash = string => string.replace(/^\s?-/, '').trim(); export default { globs: ['src/components/**/*.ts'], @@ -47,7 +48,7 @@ export default { } classDoc['animations'].push({ name: t.name, - description: t.description + description: noDash(t.description) }); break;