Commit 3d40930 1 parent 6c27453 commit 3d40930 Copy full SHA for 3d40930
File tree 3 files changed +5
-4
lines changed
packages/react-router/lib/router
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 242
242
- printfn
243
243
- promet99
244
244
- proshunsuke
245
+ - pwdcd
245
246
- pyitphyoaung
246
247
- refusado
247
248
- reyronald
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ export interface Router {
271
271
272
272
/**
273
273
* State maintained internally by the router. During a navigation, all states
274
- * reflect the the "old" location unless otherwise noted.
274
+ * reflect the "old" location unless otherwise noted.
275
275
*/
276
276
export interface RouterState {
277
277
// TODO: (v7) should we consider renaming this `navigationType` to align with
@@ -1757,7 +1757,7 @@ export function createRouter(init: RouterInit): Router {
1757
1757
if ( opts && opts . replace != null ) {
1758
1758
replace = opts . replace ;
1759
1759
} else {
1760
- // If the user didn't explicity indicate replace behavior, replace if
1760
+ // If the user didn't explicitly indicate replace behavior, replace if
1761
1761
// we redirected to the exact same location we're currently at to avoid
1762
1762
// double back-buttons
1763
1763
let location = normalizeRedirectLocation (
Original file line number Diff line number Diff line change @@ -692,7 +692,7 @@ function explodeOptionalSegments(path: string): string[] {
692
692
let required = first . replace ( / \? $ / , "" ) ;
693
693
694
694
if ( rest . length === 0 ) {
695
- // Intepret empty string as omitting an optional segment
695
+ // Interpret empty string as omitting an optional segment
696
696
// `["one", "", "three"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`
697
697
return isOptional ? [ required , "" ] : [ required ] ;
698
698
}
@@ -1081,7 +1081,7 @@ export function decodePath(value: string) {
1081
1081
} catch ( error ) {
1082
1082
warning (
1083
1083
false ,
1084
- `The URL path "${ value } " could not be decoded because it is is a ` +
1084
+ `The URL path "${ value } " could not be decoded because it is a ` +
1085
1085
`malformed URL segment. This is probably due to a bad percent ` +
1086
1086
`encoding (${ error } ).`
1087
1087
) ;
You can’t perform that action at this time.
0 commit comments