Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInternal = errors.New("internal boolevator error")
Functions ¶
func PrepareRegexp ¶ added in v0.29.1
PrepareRegexp ensures that:
- we match the whole string to avoid partial match false positives (e.g. we don't want ".*smh.*" regular expression to match an empty string "")
- enable Pattern.DOTALL1 alternative in Go because otherwise simply adding ^ and $ will be too restricting, since we actually support multi-line matches
- enable Pattern.CASE_INSENSITIVE alternative in Go to be compatible with the Cirrus Cloud parser
Types ¶
type Boolevator ¶ added in v0.11.0
type Boolevator struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.11.0
func New(opts ...Option) *Boolevator
Click to show internal directories.
Click to hide internal directories.