Use greedy regex for removing docblock

This commit is contained in:
Christopher Chedeau 2015-04-01 08:53:49 -07:00
parent eacecbbca8
commit 7a165db177
1 changed files with 1 additions and 1 deletions

View File

@ -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>
);