Skip to content

Commit 7a165db

Browse files
committed
Use greedy regex for removing docblock
1 parent eacecbb commit 7a165db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

website/layout/AutodocsLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ var Autodocs = React.createClass({
298298
path={docs.example.path}
299299
/>
300300
<Prism>
301-
{docs.example.content.replace(/^[\s\S]*\*\//, '').trim()}
301+
{docs.example.content.replace(/^[\s\S]*?\*\//, '').trim()}
302302
</Prism>
303303
</div>
304304
);

0 commit comments

Comments
 (0)