Permalink
Browse files

Merge pull request #74 from CamShaft/master

Global leaks
  • Loading branch information...
chrisumbel committed Nov 9, 2012
2 parents 4aaa939 + 32e6c06 commit f703081127fa50eac380e319ae9bea7c97b86c33
@@ -21,7 +21,7 @@ THE SOFTWARE.
*/
var stopwords = require('../util/stopwords');
-var Tokenizer = require('../tokenizers/aggressive_tokenizer')
+var Tokenizer = require('../tokenizers/aggressive_tokenizer'),
tokenizer = new Tokenizer();
module.exports = function() {
@@ -24,7 +24,7 @@ THE SOFTWARE.
var Tokenizer = require('./tokenizer'),
util = require('util');
-AggressiveTokenizer = function() {
+var AggressiveTokenizer = function() {
Tokenizer.call(this);
};
util.inherits(AggressiveTokenizer, Tokenizer);
@@ -20,8 +20,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-var Tokenizer = require('lib/natural/tokenizers/aggressive_tokenizer')
- tokenizer = new Tokenizer();
+var Tokenizer = require('lib/natural/tokenizers/aggressive_tokenizer'),
+ tokenizer = new Tokenizer();
describe('aggressive_tokenizer', function() {
it('should tokenize strings', function() {

0 comments on commit f703081

Please sign in to comment.