const { CALL, CONSTRUCT, ReferenceTracker, getStringIfConstant } = require("eslint-utils");
const { RegExpParser, visitRegExpAST } = require("regexpp");
-const lodash = require("lodash");
//------------------------------------------------------------------------------
// Helpers
// the opposite of the previous when the regex is matching backward in a lookbehind context.
messageId = "backward";
- } else if (lodash.last(groupCut).type === "Alternative") {
+ } else if (groupCut[groupCut.length - 1].type === "Alternative") {
// group's and bref's ancestor nodes below the lowest common ancestor are sibling alternatives => they're disjunctive.
messageId = "disjunctive";