replace-in-file
Advanced tools
Comparing version 4.1.3 to 4.2.0
@@ -36,3 +36,3 @@ #!/usr/bin/env node | ||
if (isRegex) { | ||
const flags = from.replace(/.*\/([gimy]*)$/, '$1'); | ||
const flags = from.replace(/.*\/([gimyus]*)$/, '$1'); | ||
const pattern = from.replace(new RegExp(`^/(.*?)/${flags}$`), '$1'); | ||
@@ -39,0 +39,0 @@ try { |
{ | ||
"name": "replace-in-file", | ||
"version": "4.1.3", | ||
"version": "4.2.0", | ||
"description": "A simple utility to quickly replace text in one or more files.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/adamreisnz/replace-in-file#readme", |
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
65174