mirror of
https://github.com/knex/knex.git
synced 2025-07-18 22:42:37 +00:00
14 lines
271 B
JavaScript
14 lines
271 B
JavaScript
function normalizePath(pathEntry) {
|
|
return pathEntry.replace(/\\/g, '/');
|
|
}
|
|
function normalizePathArray(pathArray) {
|
|
return pathArray.map((pathEntry) => {
|
|
return pathEntry.replace(/\\/g, '/');
|
|
});
|
|
}
|
|
|
|
module.exports = {
|
|
normalizePath,
|
|
normalizePathArray,
|
|
};
|