persona-community-5/.pnpm-store/v3/files/95/4a53ae57cff4124cedaecd15e49951806eb8eeead678f6453b2ce65ab24141420b7e91483683c343a6590bf4f9069fbef248e67cedb94d7b471a81014c92cd
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

13 lines
290 B
Plaintext

'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)
);
};