aboutsummaryrefslogtreecommitdiffstats
path: root/docs/collect.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/collect.js')
-rw-r--r--docs/collect.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/collect.js b/docs/collect.js
index 5a5e3ee9..2cb85fe2 100644
--- a/docs/collect.js
+++ b/docs/collect.js
@@ -208,12 +208,12 @@ function propertyTag(doc, name, value) {
}
function returnsTag(doc, name, value) {
- var match = value.match(/^({(\S+)}\s*)?(.*)?/);
+ var match = value.match(/^{(\S+)}\s+(.*)?/);
if (match) {
var tag = {
- type: match[2],
- description: match[3] || false
+ type: match[1],
+ description: match[2] || false
};
} else {
throw "[" + doc.raw.file + ":" + doc.raw.line +