提交 7fa059a0 编写于 作者: B Benjamin Pasero

labels - paranoia check

上级 1843376e
......@@ -103,7 +103,7 @@ export function shorten(paths: string[]): string[] {
for (let otherPathIndex = 0; !match && otherPathIndex < paths.length; otherPathIndex++) {
// suffix subpath treated specially as we consider no match 'x' and 'x/...'
if (otherPathIndex !== pathIndex && paths[otherPathIndex].indexOf(subpath) > -1) {
if (otherPathIndex !== pathIndex && paths[otherPathIndex] && paths[otherPathIndex].indexOf(subpath) > -1) {
const isSubpathEnding: boolean = (start + subpathLength === segments.length);
const isOtherPathEnding: boolean = endsWith(paths[otherPathIndex], subpath);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册