diff --git a/javascript/ql/lib/semmle/javascript/security/performance/ReDoSUtil.qll b/javascript/ql/lib/semmle/javascript/security/performance/ReDoSUtil.qll index e102bcc3531..54e69cc3178 100644 --- a/javascript/ql/lib/semmle/javascript/security/performance/ReDoSUtil.qll +++ b/javascript/ql/lib/semmle/javascript/security/performance/ReDoSUtil.qll @@ -98,8 +98,6 @@ predicate matchesEpsilon(RegExpTerm t) { matchesEpsilon(t.(RegExpBackRef).getGroup()) or forex(RegExpTerm child | child = t.(RegExpSequence).getAChild() | matchesEpsilon(child)) - or - t.(RegExpRange).getLowerBound() = 0 } /** diff --git a/python/ql/lib/semmle/python/security/performance/ReDoSUtil.qll b/python/ql/lib/semmle/python/security/performance/ReDoSUtil.qll index e102bcc3531..54e69cc3178 100644 --- a/python/ql/lib/semmle/python/security/performance/ReDoSUtil.qll +++ b/python/ql/lib/semmle/python/security/performance/ReDoSUtil.qll @@ -98,8 +98,6 @@ predicate matchesEpsilon(RegExpTerm t) { matchesEpsilon(t.(RegExpBackRef).getGroup()) or forex(RegExpTerm child | child = t.(RegExpSequence).getAChild() | matchesEpsilon(child)) - or - t.(RegExpRange).getLowerBound() = 0 } /** diff --git a/ruby/ql/lib/codeql/ruby/security/performance/ReDoSUtil.qll b/ruby/ql/lib/codeql/ruby/security/performance/ReDoSUtil.qll index e102bcc3531..54e69cc3178 100644 --- a/ruby/ql/lib/codeql/ruby/security/performance/ReDoSUtil.qll +++ b/ruby/ql/lib/codeql/ruby/security/performance/ReDoSUtil.qll @@ -98,8 +98,6 @@ predicate matchesEpsilon(RegExpTerm t) { matchesEpsilon(t.(RegExpBackRef).getGroup()) or forex(RegExpTerm child | child = t.(RegExpSequence).getAChild() | matchesEpsilon(child)) - or - t.(RegExpRange).getLowerBound() = 0 } /**