Function: convertParamsRouterToRegExp()

convertParamsRouterToRegExp(path): (RegExp | string[])[] | null

convert params routes to regular expressions

Parameters

path

string

a params paths

Returns

(RegExp | string[])[] | null

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