eslint-plugin-regexp
Advanced tools
Comparing version
@@ -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", |
232354
0