mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Use greedy regex for removing docblock
This commit is contained in:
parent
eacecbbca8
commit
7a165db177
@ -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>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user