Skip to content

Commit

Permalink
tools: fix detecting constructor for JSON doc
Browse files Browse the repository at this point in the history
Regex previous was not detecting cases like AssertionError as
a class name.

PR-URL: #4966
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chris Dickinson <chris@neversaw.us>
  • Loading branch information
TimothyGu authored and rvagg committed Feb 8, 2016
1 parent 0384a43 commit 777ed82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ var classMethExpr =
/^class\s*method\s*:?[^\.]+\.([^ \.\(\)]+)\([^\)]*\)\s*?$/i;
var methExpr =
/^(?:method:?\s*)?(?:[^\.]+\.)?([^ \.\(\)]+)\([^\)]*\)\s*?$/i;
var newExpr = /^new ([A-Z][a-z]+)\([^\)]*\)\s*?$/;
var newExpr = /^new ([A-Z][a-zA-Z]+)\([^\)]*\)\s*?$/;
var paramExpr = /\((.*)\);?$/;

function newSection(tok) {
Expand Down

0 comments on commit 777ed82

Please sign in to comment.