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 <[email protected]>
Reviewed-By: Chris Dickinson <[email protected]>
  • Loading branch information
TimothyGu authored and Myles Borins committed Feb 18, 2016
1 parent 1389660 commit eddde1f
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 eddde1f

Please sign in to comment.