diff options
author | isaacs <i@izs.me> | 2012-01-05 20:41:24 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-01-05 20:41:24 +0400 |
commit | d1a8ca9ade73fb5469509d4cd574c612f115fa28 (patch) | |
tree | db3b195fe880511fff65afecbf2a7fdcc471951a | |
parent | b0c8ab4c2b5fabe18361e9ac57d7b0eecdb6c82a (diff) |
Fix #1994 Allow spaces in #! lines
Related: mishoo/UglifyJS#291
-rw-r--r-- | lib/utils/cmd-shim.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/cmd-shim.js b/lib/utils/cmd-shim.js index 802fdb8fc..476bfae52 100644 --- a/lib/utils/cmd-shim.js +++ b/lib/utils/cmd-shim.js @@ -20,7 +20,7 @@ var fs = require("graceful-fs") , path = require("path") , relativize = require("./relativize.js") , npm = require("../npm.js") - , shebangExpr = /^#\!(?:\/usr\/bin\/env )?([^ \t]+)(.*)$/ + , shebangExpr = /^#\!\s*(?:\/usr\/bin\/env)?\s*([^ \t]+)(.*)$/ function cmdShimIfExists (from, to, cb) { fs.stat(from, function (er) { |