Files
Lei Chen 13864a6b5c ci: windows (#4213)
* chore: try run scripts directly

* chore: only trigger windows ci

* chore: remove resolve-bin

* fix: windows ci

* fix: windows path

* chore: try path

* chore: print gen

* chore: remove linux test

* chore: debug windows path

* chore: compare unix system

* chore: try change path

* chore: noramlize path

* chore: switch windows

* fix: bug

* chore: windows ci

* chore: up timeout

* chore: up timeout

* chore: match more tests

* chore: clean code

* use path.posix.normalize

* ci: debug path

* chore: test utils

* chore: update logic

* chore: reduce diff content
2023-09-15 07:27:20 +08:00

15 lines
284 B
JavaScript

/**
* utils for covert browser paths,
* fix https://github.com/less/less.js/pull/4213
*
* @param {string} path
* @returns {string}
*/
function forceCovertToBrowserPath (path) {
return (path || '').replace(/\\/g, '/');
}
module.exports = {
forceCovertToBrowserPath
}