Skip to content

Commit adb8860

Browse files
committed
spelling: pattern
Signed-off-by: Josh Soref <[email protected]>
1 parent c7ae072 commit adb8860

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

java/ql/lib/semmle/code/java/security/regexp/NfaUtils.qll

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ predicate matchesEpsilon(RegExpTerm t) {
5959
/**
6060
* A lookahead/lookbehind that matches the empty string.
6161
*/
62-
class EmptyPositiveSubPatttern extends RegExpSubPattern {
63-
EmptyPositiveSubPatttern() {
62+
class EmptyPositiveSubPattern extends RegExpSubPattern {
63+
EmptyPositiveSubPattern() {
6464
(
6565
this instanceof RegExpPositiveLookahead
6666
or
@@ -70,6 +70,9 @@ class EmptyPositiveSubPatttern extends RegExpSubPattern {
7070
}
7171
}
7272

73+
/** DEPRECATED: Use `EmptyPositiveSubPattern` instead. */
74+
deprecated class EmptyPositiveSubPatttern = EmptyPositiveSubPattern;
75+
7376
/**
7477
* A branch in a disjunction that is the root node in a literal, or a literal
7578
* whose root node is not a disjunction.
@@ -697,9 +700,7 @@ predicate delta(State q1, EdgeLabel lbl, State q2) {
697700
lbl = Epsilon() and q2 = Accept(getRoot(dollar))
698701
)
699702
or
700-
exists(EmptyPositiveSubPatttern empty | q1 = before(empty) |
701-
lbl = Epsilon() and q2 = after(empty)
702-
)
703+
exists(EmptyPositiveSubPattern empty | q1 = before(empty) | lbl = Epsilon() and q2 = after(empty))
703704
}
704705

705706
/**

javascript/ql/lib/semmle/javascript/security/regexp/NfaUtils.qll

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ predicate matchesEpsilon(RegExpTerm t) {
5959
/**
6060
* A lookahead/lookbehind that matches the empty string.
6161
*/
62-
class EmptyPositiveSubPatttern extends RegExpSubPattern {
63-
EmptyPositiveSubPatttern() {
62+
class EmptyPositiveSubPattern extends RegExpSubPattern {
63+
EmptyPositiveSubPattern() {
6464
(
6565
this instanceof RegExpPositiveLookahead
6666
or
@@ -70,6 +70,9 @@ class EmptyPositiveSubPatttern extends RegExpSubPattern {
7070
}
7171
}
7272

73+
/** DEPRECATED: Use `EmptyPositiveSubPattern` instead. */
74+
deprecated class EmptyPositiveSubPatttern = EmptyPositiveSubPattern;
75+
7376
/**
7477
* A branch in a disjunction that is the root node in a literal, or a literal
7578
* whose root node is not a disjunction.
@@ -697,9 +700,7 @@ predicate delta(State q1, EdgeLabel lbl, State q2) {
697700
lbl = Epsilon() and q2 = Accept(getRoot(dollar))
698701
)
699702
or
700-
exists(EmptyPositiveSubPatttern empty | q1 = before(empty) |
701-
lbl = Epsilon() and q2 = after(empty)
702-
)
703+
exists(EmptyPositiveSubPattern empty | q1 = before(empty) | lbl = Epsilon() and q2 = after(empty))
703704
}
704705

705706
/**

python/ql/lib/semmle/python/security/regexp/NfaUtils.qll

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ predicate matchesEpsilon(RegExpTerm t) {
5959
/**
6060
* A lookahead/lookbehind that matches the empty string.
6161
*/
62-
class EmptyPositiveSubPatttern extends RegExpSubPattern {
63-
EmptyPositiveSubPatttern() {
62+
class EmptyPositiveSubPattern extends RegExpSubPattern {
63+
EmptyPositiveSubPattern() {
6464
(
6565
this instanceof RegExpPositiveLookahead
6666
or
@@ -70,6 +70,9 @@ class EmptyPositiveSubPatttern extends RegExpSubPattern {
7070
}
7171
}
7272

73+
/** DEPRECATED: Use `EmptyPositiveSubPattern` instead. */
74+
deprecated class EmptyPositiveSubPatttern = EmptyPositiveSubPattern;
75+
7376
/**
7477
* A branch in a disjunction that is the root node in a literal, or a literal
7578
* whose root node is not a disjunction.
@@ -697,9 +700,7 @@ predicate delta(State q1, EdgeLabel lbl, State q2) {
697700
lbl = Epsilon() and q2 = Accept(getRoot(dollar))
698701
)
699702
or
700-
exists(EmptyPositiveSubPatttern empty | q1 = before(empty) |
701-
lbl = Epsilon() and q2 = after(empty)
702-
)
703+
exists(EmptyPositiveSubPattern empty | q1 = before(empty) | lbl = Epsilon() and q2 = after(empty))
703704
}
704705

705706
/**

ruby/ql/lib/codeql/ruby/security/regexp/NfaUtils.qll

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ predicate matchesEpsilon(RegExpTerm t) {
5959
/**
6060
* A lookahead/lookbehind that matches the empty string.
6161
*/
62-
class EmptyPositiveSubPatttern extends RegExpSubPattern {
63-
EmptyPositiveSubPatttern() {
62+
class EmptyPositiveSubPattern extends RegExpSubPattern {
63+
EmptyPositiveSubPattern() {
6464
(
6565
this instanceof RegExpPositiveLookahead
6666
or
@@ -70,6 +70,9 @@ class EmptyPositiveSubPatttern extends RegExpSubPattern {
7070
}
7171
}
7272

73+
/** DEPRECATED: Use `EmptyPositiveSubPattern` instead. */
74+
deprecated class EmptyPositiveSubPatttern = EmptyPositiveSubPattern;
75+
7376
/**
7477
* A branch in a disjunction that is the root node in a literal, or a literal
7578
* whose root node is not a disjunction.
@@ -697,9 +700,7 @@ predicate delta(State q1, EdgeLabel lbl, State q2) {
697700
lbl = Epsilon() and q2 = Accept(getRoot(dollar))
698701
)
699702
or
700-
exists(EmptyPositiveSubPatttern empty | q1 = before(empty) |
701-
lbl = Epsilon() and q2 = after(empty)
702-
)
703+
exists(EmptyPositiveSubPattern empty | q1 = before(empty) | lbl = Epsilon() and q2 = after(empty))
703704
}
704705

705706
/**

0 commit comments

Comments
 (0)