From c75504622124934c0a12b260952d94db366bd187 Mon Sep 17 00:00:00 2001 From: tigerwill90 Date: Tue, 19 Nov 2024 23:15:34 +0100 Subject: [PATCH] feat: wip on documentation --- node.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node.go b/node.go index aacefba..c4993b8 100644 --- a/node.go +++ b/node.go @@ -380,6 +380,8 @@ Walk: inode = current.inode charsMatchedInNodeFound += idx } else if len(current.children) > 0 { + // key end with *{foo}, so we are sure to have only one children staring by '/' + // e.g. /*{foo} and /*{foo}/bar inode = current.children[0] charsMatchedInNodeFound += len(current.key[charsMatchedInNodeFound:]) } else {