Function convertParamsRouterToRegExp

  • convert params routes to regular expressions

    Parameters

    • path: string

      a params paths

    Returns null | (RegExp | string[])[]

    null or An array contains the RegExp that matches the params and the path for each params parameter