mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 23:24:06 +08:00
Use greedy regex for removing docblock
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user