Options
All
  • Public
  • Public/Protected
  • All
Menu

Pre-processes by appling a list of rules sequentially. First rules added are applied first.

export
implements

{PreProcessor}

Hierarchy

  • ChainedRuleBasedPreProcessor

Implements

Index

Constructors

Methods

Constructors

constructor

Methods

add

  • add(pattern: RegExp, replacement: string): void
  • Add a new rule.

    memberof

    ChainedRuleBasedPreProcessor

    Parameters

    • pattern: RegExp

      The pattern to find that will be replaced.

    • replacement: string

      The replacement string if the pattern is matched.

    Returns void

preProcess

  • preProcess(query: string): string
  • Pre-process a string.

    memberof

    ChainedRuleBasedPreProcessor

    Parameters

    • query: string

      The string to pre-process.

    Returns string

    The pre-processed string.

Generated using TypeDoc