mirror of
https://github.com/knex/knex.git
synced 2025-07-14 20:40:38 +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,
|
||
|
};
|