File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
package.json
2
- es
3
- lib
4
- umd
2
+ /es
3
+ /index.js
4
+ /lib
5
+ /umd
5
6
website /dist
6
7
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import invariant from "invariant";
3
3
////////////////////////////////////////////////////////////////////////////////
4
4
// startsWith(string, search) - Check if `string` starts with `search`
5
5
let startsWith = ( string , search ) => {
6
- return string . substr ( 0 , search . length ) === search ;
6
+ return string . substr ( 0 , search . length ) === search ;
7
7
} ;
8
8
9
9
////////////////////////////////////////////////////////////////////////////////
@@ -82,7 +82,7 @@ let pick = (routes, uri) => {
82
82
let dynamicMatch = paramRe . exec ( routeSegment ) ;
83
83
84
84
if ( dynamicMatch && ! isRootUri ) {
85
- let matchIsNotReserved = ( reservedNames . indexOf ( dynamicMatch [ 1 ] ) === - 1 )
85
+ let matchIsNotReserved = reservedNames . indexOf ( dynamicMatch [ 1 ] ) === - 1 ;
86
86
invariant (
87
87
matchIsNotReserved ,
88
88
`<Router> dynamic segment "${
You can’t perform that action at this time.
0 commit comments