TOC html
Jump to navigation
Jump to search
| Line 70: | Line 70: | ||
if(value.path) { | if(value.path) { | ||
var repeat = depth | var repeat = depth | ||
| + | |||
| + | // '&&' does not work ! | ||
if(parent) { | if(parent) { | ||
if(!parent.path) { | if(!parent.path) { | ||
| − | + | var regExp = new RegExp(parent.text + '$') | |
| + | if(regExp.test(value.path)) { | ||
repeat--; | repeat--; | ||
} | } | ||
Revision as of 17:43, 16 July 2020