Comparing version 0.0.3 to 0.0.4
@@ -17,2 +17,5 @@ module.exports = function(args){ | ||
// remove escaped newlines | ||
args = args.replace(/\\\n/g, ''); | ||
for(var i=0; i<args.length; i++){ | ||
@@ -19,0 +22,0 @@ var c = args.charAt(i); |
{ | ||
"name": "spawn-args", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Turn a string of command line options into an array for child_process.spawn", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -29,2 +29,8 @@ var parse = require('../'); | ||
}) | ||
it('should parse escaped newlines properly', function() { | ||
var arr = parse('--host hello.com \\\n --port 80') | ||
arr.length.should.equal(4); | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4593
86