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

View File

@ -298,7 +298,7 @@ var Autodocs = React.createClass({
path={docs.example.path} path={docs.example.path}
/> />
<Prism> <Prism>
{docs.example.content.replace(/^[\s\S]*\*\//, '').trim()} {docs.example.content.replace(/^[\s\S]*?\*\//, '').trim()}
</Prism> </Prism>
</div> </div>
); );