Skip to content

Commit 4e82d0f

Browse files
committed
fix: fix code syntax issue, causing issue when not matching on IE
1 parent 25ec4fa commit 4e82d0f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

modules/RouteNode.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ export default class RouteNode {
182182
let matchChildren = (nodes, pathSegment, segments) => {
183183
const isRoot = nodes.length === 1 && nodes[0].name === '';
184184
// for (child of node.children) {
185-
for (let i in nodes) {
186-
let child = nodes[i];
185+
for (let i = 0; i < nodes.length; i += 1) {
186+
const child = nodes[i];
187+
187188
// Partially match path
188189
let match = child.parser.partialMatch(pathSegment);
189190
let remainingPath;

0 commit comments

Comments
 (0)