Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Expression

Utils for converting semantic key/value condition to regex capture groups. Also accepts straight regex or strings to convert to regex.

Hierarchy

  • Expression

Index

Methods

escape

  • escape(str: string): string
  • Escape any special regex characters

    Parameters

    • str: string

    Returns string

fromCondition

  • Create regex for a value from various condition types

    Parameters

    Returns RegExp

fromString

  • fromString(str: string): RegExp
  • Convert strings to regular expressions

    Parameters

    • str: string

    Returns RegExp

Generated using TypeDoc