Skip to content

Commit

Permalink
nongreedy regex for doc pulling.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Aug 26, 2014
1 parent f45491c commit f526d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generate-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f526d97

Please sign in to comment.