struct
PassiveScan::Matcher
- PassiveScan::Matcher
- Struct
- Value
- Object
Defined in:
models/passive_scan.crConstructors
Instance Method Summary
- #compiled_regex : Regex | Nil
- #compiled_regex=(compiled_regex : Regex | Nil)
- #compiled_regexes : Array(Regex) | Nil
- #compiled_regexes=(compiled_regexes : Array(Regex) | Nil)
- #condition : String
- #condition=(condition : String)
- #patterns : Array(YAML::Any)
- #patterns=(patterns : Array(YAML::Any))
-
#regex_compile_failed=(regex_compile_failed : Bool)
Sticky flag: true when this matcher's regexes failed to compile.
-
#regex_compile_failed? : Bool
Sticky flag: true when this matcher's regexes failed to compile.
-
#string_patterns : Array(String)
Pre-stringified patterns.
-
#string_patterns=(string_patterns : Array(String))
Pre-stringified patterns.
- #type : String
- #type=(type : String)
Constructor Detail
Instance Method Detail
Sticky flag: true when this matcher's regexes failed to compile. detect.cr checks it to short-circuit instead of retrying the (already-broken) compilation on every line.
Sticky flag: true when this matcher's regexes failed to compile. detect.cr checks it to short-circuit instead of retrying the (already-broken) compilation on every line.
Pre-stringified patterns. detect.cr's hot path used to call
pattern.to_s per (file × line × matcher); the conversion is the
same every call so we do it once at load time.
Pre-stringified patterns. detect.cr's hot path used to call
pattern.to_s per (file × line × matcher); the conversion is the
same every call so we do it once at load time.