diff --git a/lib/generate-meta.js b/lib/generate-meta.js index 3bf90bad35..316de1a757 100644 --- a/lib/generate-meta.js +++ b/lib/generate-meta.js @@ -17,7 +17,7 @@ file.walkSync(viewRoot, function (start, dirs, files) { // TODO :: make this regex not suck var metaRE = /\/\*\!([\s\S]*)\!\*\//m; var matches = test.match(metaRE); - var docRE = /\/\*\sDOC([\s\S]*)\*\//m; + var docRE = /\/\*\sDOC([\s\S]*?)\*\//m; var docmatches = test.match(docRE); var depRE = /define\((\[[^\]]*\]),/; var depMatches = test.match(depRE);