Skip to content

Commit 031d183

Browse files
authored
Merge pull request #8532 from aibaars/regex-refactor-2
JS/Ruby/Python: rename RegExpTreeView.qll to ReDoSUtilSpecific.qll
2 parents 70c4473 + 2ae5e81 commit 031d183

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

javascript/ql/lib/semmle/javascript/security/performance/ReDoSUtil.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* states that will cause backtracking (a rejecting suffix exists).
1313
*/
1414

15-
import RegExpTreeView
15+
import ReDoSUtilSpecific
1616

1717
/**
1818
* A configuration for which parts of a regular expression should be considered relevant for

javascript/ql/lib/semmle/javascript/security/performance/RegExpTreeView.qll renamed to javascript/ql/lib/semmle/javascript/security/performance/ReDoSUtilSpecific.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/**
2-
* This module should provide a class hierarchy corresponding to a parse tree of regular expressions.
3-
*
4-
* Since the javascript extractor already provides such a hierarchy, we simply import that.
2+
* Provides JavaScript-specific definitions for use in the ReDoSUtil module.
53
*/
64

75
import javascript

python/ql/lib/semmle/python/security/performance/ReDoSUtil.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* states that will cause backtracking (a rejecting suffix exists).
1313
*/
1414

15-
import RegExpTreeView
15+
import ReDoSUtilSpecific
1616

1717
/**
1818
* A configuration for which parts of a regular expression should be considered relevant for

python/ql/lib/semmle/python/security/performance/RegExpTreeView.qll renamed to python/ql/lib/semmle/python/security/performance/ReDoSUtilSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This module should provide a class hierarchy corresponding to a parse tree of regular expressions.
2+
* Provides Python-specific definitions for use in the ReDoSUtil module.
33
*/
44

55
import python
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import semmle.python.security.performance.RegExpTreeView
1+
import semmle.python.RegexTreeView
22
import semmle.python.dataflow.new.DataFlow
33
import semmle.python.dataflow.new.Regexp

ruby/ql/lib/codeql/ruby/security/performance/ReDoSUtil.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* states that will cause backtracking (a rejecting suffix exists).
1313
*/
1414

15-
import RegExpTreeView
15+
import ReDoSUtilSpecific
1616

1717
/**
1818
* A configuration for which parts of a regular expression should be considered relevant for

ruby/ql/lib/codeql/ruby/security/performance/RegExpTreeView.qll renamed to ruby/ql/lib/codeql/ruby/security/performance/ReDoSUtilSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This module should provide a class hierarchy corresponding to a parse tree of regular expressions.
2+
* Provides Ruby-specific definitions for use in the ReDoSUtil module.
33
*/
44

55
import codeql.ruby.Regexp

0 commit comments

Comments
 (0)