Options
All
  • Public
  • Public/Protected
  • All
Menu

Filter that allows for defining a set of regular expressions for including a value or excluding a value based on the expressions.

Depending on which config values are provided, the filtering works differently.

If both the includes and excludes are defined in the config then the value being matched must match at least one of the patterns in the includes and cannot match any of the exclude patterns.

If only includes are provided, the value must match at least one of the patterns.

If only the excludes are provides, the value cannot match any of the patterns.

Hierarchy

  • IncludeExcludeFilter

Implements

  • FilterComponent

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

config

config: IncludeExcludeFilterConfig

Methods

filter

  • filter(values: string[]): string[]
  • Parameters

    • values: string[]

    Returns string[]

matches

  • matches(value: string): boolean
  • Parameters

    • value: string

    Returns boolean

Generated using TypeDoc