Skip to content

Commit

Permalink
fixed: Don't convert newlines. Fixes #5.
Browse files Browse the repository at this point in the history
  • Loading branch information
gf3 committed Apr 22, 2011
1 parent 72bd531 commit a12c032
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/shovel.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stdin.on( 'end', run )
function run() { function run() {
result = (function() { result = (function() {
try { try {
return Script.runInNewContext( this.toString().replace( /\\([rn])/g, "\\\\$1" ), sandbox ) return Script.runInNewContext( this.toString(), sandbox )
} }
catch (e) { catch (e) {
return e.name + ': ' + e.message return e.name + ': ' + e.message
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, "contributors": , "contributors":
[ "Dominic Tarr (http://cyber-hobo.blogspot.com)" [ "Dominic Tarr (http://cyber-hobo.blogspot.com)"
] ]
, "version" : "0.8.0" , "version" : "0.8.1"
, "main" : "./lib/sandbox" , "main" : "./lib/sandbox"
, "directories" : { "lib" : "./lib" } , "directories" : { "lib" : "./lib" }
, "engines" : [ "node >=0.3.0-pre" ] , "engines" : [ "node >=0.3.0-pre" ]
Expand Down

0 comments on commit a12c032

Please sign in to comment.