You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-regexp

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-regexp - npm Package Compare versions

Comparing version

to
0.4.2

2

dist/rules/order-in-character-class.js

@@ -185,3 +185,3 @@ "use strict";

const prev = parent.elements[parent.elements.indexOf(target) - 1];
if (prev.type !== "Character" && prev.type !== "CharacterSet") {
if (!prev || (prev.type !== "Character" && prev.type !== "CharacterSet")) {
return false;

@@ -188,0 +188,0 @@ }

{
"name": "eslint-plugin-regexp",
"version": "0.4.1",
"version": "0.4.2",
"description": "ESLint plugin for finding RegExp mistakes and RegExp style guide violations.",

@@ -49,3 +49,3 @@ "main": "dist/index.js",

"devDependencies": {
"@ota-meshi/eslint-plugin": "^0.2.0",
"@ota-meshi/eslint-plugin": "^0.3.0",
"@types/eslint": "^7.2.0",

@@ -52,0 +52,0 @@ "@types/eslint-scope": "^3.7.0",