Skip to content

Commit

Permalink
Use greedy regex for removing docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeux committed Apr 1, 2015
1 parent eacecbb commit 7a165db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/layout/AutodocsLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down

0 comments on commit 7a165db

Please sign in to comment.