Skip to content

Commit 021e5ff

Browse files
authored
Python: Autoformat
1 parent af91a2d commit 021e5ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/src/semmle/python/security/performance/RegExpTreeView.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import semmle.python.RegexTreeView
1111
* For javascript we make the pragmatic performance optimization to ignore files we did not extract.
1212
*/
1313
predicate isExcluded(RegExpParent parent) {
14-
not exists(parent.getRegex().getLocation().getFile().getRelativePath()) or
14+
not exists(parent.getRegex().getLocation().getFile().getRelativePath())
15+
or
1516
// Regexes with many occurrences of ".*" may cause the polynomial ReDoS computation to explode, so
1617
// we explicitly exclude these.
1718
count(int i | exists(parent.getRegex().getText().regexpFind("\\.\\*", i, _)) | i) > 10

0 commit comments

Comments
 (0)