Function rcaptureRegExp

  • Builds a route matcher that matches a part of the name against expected regular expression, and optionally captures the match.

    Reports the capture as regexp.

    Parameters

    • expected: RegExp

      The regular expression the name part expected to match.

    • Optional name: string

      The name of the capture or nothing to capture under match index.

    Returns RouteMatcher

    New route matcher.

Generated using TypeDoc