mirror of
https://github.com/less/less.js.git
synced 2026-01-14 09:47:58 -05:00
* 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
15 lines
284 B
JavaScript
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
|
|
}
|