Permalink
Browse files

Strip non-identifier characters (like "?") from the end of an identif…

…ier string when trying to look up a kwArgs type. Fixes #27.
  • Loading branch information...
1 parent 2ef24cc commit 9f37a5743aa52abcba018963dcd6130d42bc617f @csnover committed Jun 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/processor/dojodoc.js
View
@@ -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) {

0 comments on commit 9f37a57

Please sign in to comment.