From f2a25b1492c0be8a26998a8e8eb3328f42daa3d9 Mon Sep 17 00:00:00 2001 From: Bernardo <1529139+ghbob@users.noreply.github.com> Date: Thu, 24 Oct 2024 12:23:59 +0200 Subject: [PATCH] no-regexp-lookbehind.js - fix negative lookbehind pattern (#42) --- lib/rules/no-regexp-lookbehind.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/no-regexp-lookbehind.js b/lib/rules/no-regexp-lookbehind.js index 8c1c8f0..cbdf62b 100644 --- a/lib/rules/no-regexp-lookbehind.js +++ b/lib/rules/no-regexp-lookbehind.js @@ -1,6 +1,6 @@ 'use strict'; -const hasLookbehind = s => s.includes('(?<=') || s.includes('(? s.includes('(?<=') || s.includes('(? ({ 'Literal[regex]'(node) {