Skip to content

Commit 021f540

Browse files
committed
slightly stricter prefix removal in component leading comment
so that indentation after an asterisk is preserved
1 parent 2d27c46 commit 021f540

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dash/extract-meta.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ function gatherComponents(sources, components = {}) {
728728

729729
if (propsType) {
730730
if (
731-
propsType.valueDeclaration &&
731+
propsType.valueDeclaration &&
732732
propsType.valueDeclaration.name &&
733733
propsType.valueDeclaration.name.elements &&
734734
propsType.valueDeclaration.name.elements.length
@@ -762,7 +762,7 @@ function gatherComponents(sources, components = {}) {
762762
fullText
763763
.slice(r.pos + 4, r.end - 3)
764764
.split('\n')
765-
.map(s => s.replace(/^(\s*\*?\s+)/, ''))
765+
.map(s => s.replace(/^(\s*\*?\s)/, ''))
766766
.filter(e => e)
767767
.join('\n')
768768
)

0 commit comments

Comments
 (0)