401
return null;
402
}
404
>
// Given we have checked `base` being a parent of `path`,
405
>
// we can now remove the `base` portion of the `path`
406
>
// and only match on the remaining path components
407
>
// For that we try to extract the portion of the `path`
408
>
// that comes after the `base` portion. We have to account
409
>
// for the fact that `base` might end in a path separator
410
>
// (https://github.com/microsoft/vscode/issues/162498)
411
>
412
>
return parsedPattern(ltrim(path.substring(arg2.base.length), sep), basename);
413
};
414