Skip to content

Commit

Permalink
Strip non-identifier characters (like "?") from the end of an identif…
Browse files Browse the repository at this point in the history
…ier string when trying to look up a kwArgs type. Fixes #27.
  • Loading branch information
csnover committed Jun 9, 2012
1 parent 2ef24cc commit 9f37a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/processor/dojodoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ define([
}

var propertyTemplate = '\n* ${key}${type}${summary}',
annotationObject = env.scope.getVariable(metadata.type.split('.')),
annotationObject = env.scope.getVariable(metadata.type.replace(/[^\w$\.]+$/g, '').split('.')),
additionalDescription = '';

if (!annotationObject || annotationObject.type === Value.TYPE_UNDEFINED || /* not a built-in */ !annotationObject.file) {
Expand Down

0 comments on commit 9f37a57

Please sign in to comment.