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

    todo

    combining patterns only works in correct order - can do better

    todo

    make this function modular for better testing of each logic piece

    Parameters

    Returns RegExp

fromString

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

    Parameters

    • str: string

    Returns RegExp

Generated using TypeDoc