refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
12
home/ags/node_modules/is-path-inside/index.js
generated
vendored
12
home/ags/node_modules/is-path-inside/index.js
generated
vendored
|
|
@ -1,12 +0,0 @@
|
|||
'use strict';
|
||||
const path = require('path');
|
||||
|
||||
module.exports = (childPath, parentPath) => {
|
||||
const relation = path.relative(parentPath, childPath);
|
||||
return Boolean(
|
||||
relation &&
|
||||
relation !== '..' &&
|
||||
!relation.startsWith(`..${path.sep}`) &&
|
||||
relation !== path.resolve(childPath)
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue