Skip to content

Commit 9866951

Browse files
author
iexus
committed
webpath splits on both path separators at same time
1 parent 0b43922 commit 9866951

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ YUI.add('utils', function (Y) {
485485
**/
486486
function webpath(url) {
487487
var args = [].concat.apply([], arguments),
488-
parts = path.join.apply(path, args).split(path.sep);
488+
parts = path.join.apply(path, args).split(/[\\\/]/);
489489
return parts.join('/');
490490
}
491491

0 commit comments

Comments
 (0)