(path, i)
| 13811 | // count the number of preceding backslashes escaping the forward slash: an odd |
| 13812 | // number indicates an escaped forward slash. |
| 13813 | function slash(path, i) { |
| 13814 | if (path[i] === "/") { |
| 13815 | let k = 0; |
| 13816 | while (i > 0 && path[--i] === "\\") ++k; |
| 13817 | if ((k & 1) === 0) return true; |
| 13818 | } |
| 13819 | return false; |
| 13820 | } |
| 13821 | |
| 13822 | function defaultSeparation(a, b) { |
| 13823 | return a.parent === b.parent ? 1 : 2; |
no outgoing calls
no test coverage detected