Skip to content

Commit

Permalink
More flexible reading of component docstrings
Browse files Browse the repository at this point in the history
To support single-line comments or nonstandard indents
  • Loading branch information
alexcjohnson authored Nov 17, 2024
1 parent 9566578 commit 6b0c458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dash/extract-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ function gatherComponents(sources, components = {}) {
fullText
.slice(r.pos + 4, r.end - 3)
.split('\n')
.map(s => s.slice(3, s.length))
.map(s => s.replace(/^(\s*\*?\s+)/, ''))
.filter(e => e)
.join('\n')
)
Expand Down

0 comments on commit 6b0c458

Please sign in to comment.