Skip to content

Commit 74b7678

Browse files
authored
terminate on full filepath match (#10353)
1 parent d2a55d3 commit 74b7678

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)