mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 22:51:06 +03:30
15 lines
236 B
JavaScript
Vendored
15 lines
236 B
JavaScript
Vendored
'use strict';
|
|
var path = require('path');
|
|
var pathIsInside = require('path-is-inside');
|
|
|
|
module.exports = function (a, b) {
|
|
a = path.resolve(a);
|
|
b = path.resolve(b);
|
|
|
|
if (a === b) {
|
|
return false;
|
|
}
|
|
|
|
return pathIsInside(a, b);
|
|
};
|