Comparing version 1.7.0 to 1.7.1
@@ -5,3 +5,3 @@ { | ||
"description": "An elegant armor-plated JavaScript lexer modelled after flex. Easily extensible to tailor to your need for perfection.", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"keywords": ["lex", "lexer", "lexical", "analysis", "scan", "scanner", "scanning", "token", "tokenize", "tokenizer", "tokenization", "flex", "jison"], | ||
@@ -8,0 +8,0 @@ "main": "lib/lexer.js", |
@@ -123,5 +123,3 @@ if (typeof module === "object" && typeof module.exports === "object") module.exports = Lexer; | ||
if (result && result.index === lastIndex) { | ||
var j = matches.length; | ||
var length = matches.push({ | ||
var j = matches.push({ | ||
result: result, | ||
@@ -132,8 +130,8 @@ action: rule.action, | ||
if (rule.global) index = length; | ||
if (rule.global) index = j; | ||
while (j-- > index) { | ||
var k = j + 1; | ||
while (--j > index) { | ||
var k = j - 1; | ||
if (matches[k].length > matches[j].length) { | ||
if (matches[j].length > matches[k].length) { | ||
var temple = matches[j]; | ||
@@ -140,0 +138,0 @@ matches[j] = matches[k]; |
{ | ||
"name": "lex", | ||
"description": "An elegant armor-plated JavaScript lexer modelled after flex. Easily extensible to tailor to your need for perfection.", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"keywords": ["lex", "lexer", "lexical", "analysis", "scan", "scanner", "scanning", "token", "tokenize", "tokenizer", "tokenization", "flex", "jison"], | ||
@@ -6,0 +6,0 @@ "author": "Aadit M Shah (http://aaditmshah.github.com/) <aaditmshah@myopera.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11450
131