Comparing version 0.1.3 to 0.1.4
@@ -18,4 +18,4 @@ 'use strict'; | ||
} else { | ||
process.stdout.write(ret); | ||
} | ||
process.stdout.write(ret); | ||
} | ||
}; |
@@ -70,6 +70,9 @@ #!/usr/bin/env node | ||
args.forEach(function (arg) { | ||
var match = arg.match(/^s\/(.*)\/(.*)\/(g?)$/); | ||
var match = arg.match(/^s\/(.*[^\\])\/(.*[^\\])\/(g?)$/); | ||
if (match && lookingForSubstString) { | ||
newArgs.push(new RegExp(match[1], match[3])); | ||
newArgs.push(match[2]); | ||
var regexString = match[1].replace(/\\\//g, '/'); | ||
var replacement = match[2].replace(/\\\//g, '/').replace(/\\./g, '.'); | ||
var regexFlags = match[3]; | ||
newArgs.push(new RegExp(regexString, regexFlags)); | ||
newArgs.push(replacement); | ||
lookingForSubstString = false; | ||
@@ -76,0 +79,0 @@ } else { |
{ | ||
"name": "shx", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Portable Shell Commands for Node", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13748
122
0