Socket
Socket
Sign inDemoInstall

lex

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lex - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

2

component.json

@@ -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>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc