Skip to content

Commit 8cfd8a5

Browse files
committed
terminate on full filepath match
1 parent 5f1baca commit 8cfd8a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pxtlib/docsrender.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ namespace pxt.docs {
211211
return true
212212
}
213213
}
214-
if (d.filepath && !!m.path && d.filepath.indexOf(m.path) == 0) {
214+
if (d.filepath && !!m.path && d.filepath == m.path) {
215215
tocPath.push(m)
216216
return true
217217
}

0 commit comments

Comments
 (0)