We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25ec4fa commit 4e82d0fCopy full SHA for 4e82d0f
1 file changed
modules/RouteNode.js
@@ -182,8 +182,9 @@ export default class RouteNode {
182
let matchChildren = (nodes, pathSegment, segments) => {
183
const isRoot = nodes.length === 1 && nodes[0].name === '';
184
// for (child of node.children) {
185
- for (let i in nodes) {
186
- let child = nodes[i];
+ for (let i = 0; i < nodes.length; i += 1) {
+ const child = nodes[i];
187
+
188
// Partially match path
189
let match = child.parser.partialMatch(pathSegment);
190
let remainingPath;
0 commit comments