Skip to content

Commit

Permalink
fix(dependencies): upgrade all dependencies, improve matchParamsPath
Browse files Browse the repository at this point in the history
regexp
  • Loading branch information
Dimitri Kopriwa committed Feb 25, 2019
1 parent cff927a commit a6cef0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/matchParamsPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit a6cef0e

Please sign in to comment.