diff --git a/package.json b/package.json index b943eea..ff16360 100644 --- a/package.json +++ b/package.json @@ -184,7 +184,7 @@ "@babel/plugin-transform-runtime": "^7.2.0", "@babel/preset-env": "^7.2.3", "@babel/preset-react": "^7.0.0", - "@rollup-umd/documentation": "^1.3.14", + "@rollup-umd/documentation": "^1.3.16", "@semantic-release/changelog": "^3.0.2", "@semantic-release/git": "^7.0.7", "@semantic-release/github": "^5.2.9", diff --git a/src/matchParamsPath.js b/src/matchParamsPath.js index 8f5c0e6..84ff651 100644 --- a/src/matchParamsPath.js +++ b/src/matchParamsPath.js @@ -26,7 +26,7 @@ export default function matchParamsPath(path, pathWithParams) { const leading = pathWithParams[0] === '/' ? '/' : ''; const recomposedList = []; for (let i = 0; i < p2.length; i += 1) { - if (p1[i] && p1[i].match(/:[A-z-0-9_]+/)) { + if (p1[i] && p1[i].match(/:\w+/)) { recomposedList.push(p2[i]); } else if (p1[i]) { recomposedList.push(p1[i]);