Use greedy regex for removing docblock
This commit is contained in:
parent
eacecbbca8
commit
7a165db177
|
@ -298,7 +298,7 @@ var Autodocs = React.createClass({
|
|||
path={docs.example.path}
|
||||
/>
|
||||
<Prism>
|
||||
{docs.example.content.replace(/^[\s\S]*\*\//, '').trim()}
|
||||
{docs.example.content.replace(/^[\s\S]*?\*\//, '').trim()}
|
||||
</Prism>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue