Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #197 from jbpros/js-lexer-instantiation
Browse files Browse the repository at this point in the history
Fix lexer instantiation in JavaScript
  • Loading branch information
aslakhellesoy committed Oct 8, 2012
2 parents d2d30f7 + 83f0fa9 commit 4c279fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/lib/gherkin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Creates a new Lexer for a specific language.
*/
exports.Lexer = function(lang) {
return require('./gherkin/lexer/' + lang).Lexer;
return require('./gherkin/lexer/' + lang);
};

/**
Expand All @@ -19,4 +19,4 @@ exports.connect = function(path) {
next();
}
};
};
};

0 comments on commit 4c279fd

Please sign in to comment.