Permalink
Browse files

bugfix

  • Loading branch information...
1 parent 879ebee commit 15845c787736afcb20dd158e42abe0664c6ced76 @elmerbulthuis committed Dec 15, 2011
Showing with 3 additions and 5 deletions.
  1. +2 −4 index.js
  2. +1 −1 package.json
View
@@ -166,9 +166,7 @@ module.exports = function(tokenCallback, expressionSet, options) {
create a token object
*/
if(~index) {
- token = extend([
- expression
- ], {
+ token = extend([expression], {
index: index
, category: category
});
@@ -200,7 +198,7 @@ module.exports = function(tokenCallback, expressionSet, options) {
/*
when there is no exrpression, there is always a match!
*/
- token = extend([], {
+ token = extend([""], {
index: 0
, category: category
});
View
@@ -1,7 +1,7 @@
{
"name": "2kenizer"
, "description": "efficient tokenizer"
- , "version": "0.0.4"
+ , "version": "0.0.5"
, "author": "Elmer Bulthuis <elmerbulthuis@gmail.com>"
, "repositories": [{
"type": "git",

0 comments on commit 15845c7

Please sign in to comment.