Skip to content

Commit 4a89a7f

Browse files
committed
bug fix for sbuild win32 version
1 parent 62876b8 commit 4a89a7f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/bin/util.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ exports.getRelativePath = function(filepath) {
3434

3535

3636
exports.isAbsoluteId = function(id) {
37-
return id.indexOf("/") === 0 || id.indexOf("://") !== -1;
37+
return id.indexOf("/") === 0 ||
38+
id.indexOf("://") !== -1 ||
39+
id.indexOf(":\\") !== -1;
3840
};
3941

4042

@@ -56,7 +58,7 @@ exports.normalize = function(p, basedir) {
5658
if (p == "*.js") {
5759
p = basedir;
5860
}
59-
else if (p.indexOf("/") !== 0) {
61+
else if (!this.isAbsoluteId(p)) {
6062
p = path.join(basedir, p);
6163
}
6264

0 commit comments

Comments
 (0)