This commit is contained in:
Jianye Xi 2020-03-20 14:46:49 +08:00
Родитель 595c4b0b54
Коммит 5b28a97de5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -169,7 +169,7 @@ function buildRegex (hostTemplate, basePathPrefix, path, isCaseSensitive) {
}
/**
* To support parameter name with dash(-), replace the parameter names to array index , and will restore the name in the result object later.
* To support parameter name with dash(-), replace the parameter names to array index , and will restore the name in the result object regexp later.
* It caused by a design issue in pathToRegexp library that the parameter names must use "word characters" ([A-Za-z0-9_]).
* for more details,see https://github.com/pillarjs/path-to-regexp
**/