From 93c2dad7c2aeb4862ff79b960d4e0bd4a56ed40a Mon Sep 17 00:00:00 2001 From: Napalys Date: Thu, 7 Nov 2024 10:03:54 +0100 Subject: [PATCH] Fixes false positives from commit 445552d3b53ec9592e8e3892cb337d1004b6a432 --- javascript/ql/lib/semmle/javascript/MembershipCandidates.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/ql/lib/semmle/javascript/MembershipCandidates.qll b/javascript/ql/lib/semmle/javascript/MembershipCandidates.qll index 21f4cc1b1c5c..da9e90744ef0 100644 --- a/javascript/ql/lib/semmle/javascript/MembershipCandidates.qll +++ b/javascript/ql/lib/semmle/javascript/MembershipCandidates.qll @@ -193,7 +193,7 @@ module MembershipCandidate { or // u.match(/re/) or u.match("re") base = this and - m = "match" and + m = ["match", "matchAll"] and enumeration = RegExp::getRegExpFromNode(firstArg) ) }