Skip to content

Commit af1d5fe

Browse files
author
Tim Needham
committed
fix: Tweak of Regex to format safe version of type.
1 parent 2868c5b commit af1d5fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/get-simple-manifest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = function getSimpleManifest () {
4747
// console.log(rawElementDefinition)
4848
const elementDefinition = _.cloneDeep(rawElementDefinition)
4949
elementDefinition.type = elementType
50-
elementDefinition.typeSafe = _.kebabCase(elementType.type.replace(/./g, '-'))
50+
elementDefinition.typeSafe = _.kebabCase(elementType.replace(/\./g, '-'))
5151
elementDefinition.example = 'FIXME!'
5252
if (elementDefinition.hasOwnProperty('properties')) {
5353
elementDefinition.propertySummary = calculatePropertySummary(elementType, propertyInfo, rawElementDefinition)

0 commit comments

Comments
 (0)