Skip to content

Commit

Permalink
Making REGEX_OPTIONAL greedy, allowing arrays in brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
timdp committed Sep 30, 2014
1 parent 729888e commit f4e599f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/docparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ YUI.add('docparser', function (Y) {

REGEX_TYPE = /(.*?)\{(.*?)\}(.*)/,
REGEX_FIRSTWORD = /^\s*?([^\s]+)(.*)/,
REGEX_OPTIONAL = /\[(.*?)\]/,
REGEX_OPTIONAL = /^\[(.*)\]$/,
REGEX_START_COMMENT = {
js: /^\s*\/\*\*/,
coffee: /^\s*###\*/
Expand Down

0 comments on commit f4e599f

Please sign in to comment.