Function rcaptureDirs

  • Builds a route matcher that matches any number of directories, and captures them.

    Matches only at the entry name beginning.

    Reports the capture as dirs.

    Never captures empty match.

    Parameters

    • Optional name: string

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

    Returns RouteMatcher

    New route matcher.

    See

    Use rmatchDirs for anonymous capture.

Generated using TypeDoc