Package ai.nightfall.scan.model
Class Regex
java.lang.Object
ai.nightfall.scan.model.Regex
An object representing a regular expression to customize the behavior of a detector while Nightfall performs a scan.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the regex pattern.booleanGet whether the regex is case-sensitive.
-
Constructor Details
-
Regex
Creates a new Regex object.- Parameters:
pattern- the regular expression to use as part of a detectorisCaseSensitive- whether to consider case sensitivity when evaluating matches
-
-
Method Details
-
getPattern
Get the regex pattern.- Returns:
- the regular expression to use as part of a detector
-
isCaseSensitive
public boolean isCaseSensitive()Get whether the regex is case-sensitive.- Returns:
- true if the regular expression needs to consider case sensitivity when searching for matches, false otherwise
-