From 7a165db17766e627228f51a30191e62ca60bbea7 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 1 Apr 2015 08:53:49 -0700 Subject: [PATCH] Use greedy regex for removing docblock --- website/layout/AutodocsLayout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/layout/AutodocsLayout.js b/website/layout/AutodocsLayout.js index f77f8af9e..3bcaf0113 100644 --- a/website/layout/AutodocsLayout.js +++ b/website/layout/AutodocsLayout.js @@ -298,7 +298,7 @@ var Autodocs = React.createClass({ path={docs.example.path} /> - {docs.example.content.replace(/^[\s\S]*\*\//, '').trim()} + {docs.example.content.replace(/^[\s\S]*?\*\//, '').trim()} );