[Pkg-javascript-commits] [uglifyjs] 16/77: Fix backslashes in source-map paths on Windows
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.18
in repository uglifyjs.
commit 718e4756134053bbcf62e9686f698fa3cb5a7e03
Author: Derek Wickern <dwickern at s4isystems.com>
Date: Thu Oct 23 16:27:53 2014 -0700
Fix backslashes in source-map paths on Windows
---
bin/uglifyjs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/uglifyjs b/bin/uglifyjs
index bade20c..a177cb6 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -252,7 +252,7 @@ async.eachLimit(files, 1, function (file, cb) {
}
if (ARGS.p != null) {
if (P_RELATIVE) {
- file = path.relative(path.dirname(ARGS.source_map), file);
+ file = path.relative(path.dirname(ARGS.source_map), file).replace(/\\/g, '/');
} else {
var p = parseInt(ARGS.p, 10);
if (!isNaN(p)) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list