Skip to content

Commit

Permalink
remove dashes from animation descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Sep 21, 2021
1 parent 54fc41e commit 0ab87b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom-elements-manifest.config.js
Expand Up @@ -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'],
Expand Down Expand Up @@ -47,7 +48,7 @@ export default {
}
classDoc['animations'].push({
name: t.name,
description: t.description
description: noDash(t.description)
});
break;

Expand Down

0 comments on commit 0ab87b0

Please sign in to comment.