Permalink
Browse files

improve the check logic as per suggested

  • Loading branch information...
shijinglu committed Nov 9, 2018
1 parent bac168b commit 984180c4d8ae19171fc51c5dc1550e6aa145e2d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 node/lib/util/submodule_util.js
@@ -564,7 +564,7 @@ exports.getSubmodulesInPath = function (dir, indexSubNames) {
const isParentDir = (short, long) => {
return long.startsWith(short) && (
short[short.length-1] === "/" ||
long.replace(short, "")[0] === "/"
long[short.length] === "/"
);
};
const result = [];

0 comments on commit 984180c

Please sign in to comment.