Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
elmerbulthuis committed Dec 15, 2011
1 parent 879ebee commit 15845c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions index.js
Expand Up @@ -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
});
Expand Down Expand Up @@ -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
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -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",
Expand Down

0 comments on commit 15845c7

Please sign in to comment.