JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 16 Jul 2010 05:57:20 +0000 (13:57 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 16 Jul 2010 05:57:20 +0000 (13:57 +0800)
JSDOC/ScopeParser.js

index 09f4132..c993be7 100644 (file)
@@ -538,7 +538,7 @@ ScopeParser.prototype = {
                             print(JSON.stringify(token, null,4));
                             // look back one and see if we can find a comment!!!
                             //if (this.ts.look(-1).type == "COMM") {
-                            if (token.prefix && token.prefix.match('/eval/')) {
+                            if (token.prefix && token.prefix.match(/eval/)) {
                                 // look for eval:var:noreplace\n
                                 var _t = this;
                                 token.prefix.replace(/eval:var:([a-z_]+)/ig, function(m, a) {