summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2016-01-29 21:11:49 -0800
committerJames M Snell <jasnell@gmail.com>2016-02-01 08:30:43 -0800
commitaeb2eb77834ac79c707b011a2a14b2066aa9843c (patch)
tree57f76e893ffba523bc3bd0c5204c5973c2c8b505 /tools
parent59fb26c9a02b6464922ef71804660ad8a01bcfd8 (diff)
downloadandroid-node-v8-aeb2eb77834ac79c707b011a2a14b2066aa9843c.tar.gz
android-node-v8-aeb2eb77834ac79c707b011a2a14b2066aa9843c.tar.bz2
android-node-v8-aeb2eb77834ac79c707b011a2a14b2066aa9843c.zip
tools: fix detecting constructor for JSON doc
Regex previous was not detecting cases like AssertionError as a class name. PR-URL: https://github.com/nodejs/node/pull/4966 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chris Dickinson <chris@neversaw.us>
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/json.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doc/json.js b/tools/doc/json.js
index 9f256e41e5..cadcabf5a1 100644
--- a/tools/doc/json.js
+++ b/tools/doc/json.js
@@ -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) {