mirror of
https://github.com/github/codeql.git
synced 2026-06-29 00:27:05 +02:00
Rename RegexMatch and only include expressions
This commit is contained in:
@@ -171,7 +171,7 @@ class WebServiceRefAnnotation extends Annotation {
|
||||
/**
|
||||
* A `@javax.validation.constraints.Pattern` annotation.
|
||||
*/
|
||||
class PatternAnnotation extends Annotation, RegexExecutionExpr::Range {
|
||||
class PatternAnnotation extends Annotation, RegexMatch::Range {
|
||||
PatternAnnotation() {
|
||||
this.getType()
|
||||
.hasQualifiedName(["javax.validation.constraints", "jakarta.validation.constraints"],
|
||||
|
||||
@@ -82,7 +82,7 @@ class PatternMatcherCall extends MethodCall {
|
||||
}
|
||||
|
||||
/** A call to the `matches` method of `java.util.regex.Pattern`. */
|
||||
class PatternMatchesCall extends MethodCall, RegexExecutionExpr::Range {
|
||||
class PatternMatchesCall extends MethodCall, RegexMatch::Range {
|
||||
PatternMatchesCall() { this.getMethod() instanceof PatternMatchesMethod }
|
||||
|
||||
override Expr getRegex() { result = this.getArgument(0) }
|
||||
@@ -93,7 +93,7 @@ class PatternMatchesCall extends MethodCall, RegexExecutionExpr::Range {
|
||||
}
|
||||
|
||||
/** A call to the `matches` method of `java.util.regex.Matcher`. */
|
||||
class MatcherMatchesCall extends MethodCall, RegexExecutionExpr::Range {
|
||||
class MatcherMatchesCall extends MethodCall, RegexMatch::Range {
|
||||
MatcherMatchesCall() { this.getMethod() instanceof MatcherMatchesMethod }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user