diff --git a/dash/extract-meta.js b/dash/extract-meta.js index 7dc226a6e6..7a2acaef51 100755 --- a/dash/extract-meta.js +++ b/dash/extract-meta.js @@ -728,7 +728,7 @@ function gatherComponents(sources, components = {}) { if (propsType) { if ( - propsType.valueDeclaration && + propsType.valueDeclaration && propsType.valueDeclaration.name && propsType.valueDeclaration.name.elements && propsType.valueDeclaration.name.elements.length @@ -762,7 +762,7 @@ function gatherComponents(sources, components = {}) { fullText .slice(r.pos + 4, r.end - 3) .split('\n') - .map(s => s.replace(/^(\s*\*?\s+)/, '')) + .map(s => s.replace(/^(\s*\*?\s)/, '')) .filter(e => e) .join('\n') )