custom-translate
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -30,7 +30,6 @@ exports.version = require('./package').version; | ||
for (const expression of Object.keys(dict)) { | ||
const replacement = dict[expression]; | ||
const regex = new RegExp(expression, flags); | ||
text = text.replace(regex, replacement); | ||
text = text.replace(regex, dict[expression]); | ||
} | ||
return text; | ||
}; |
{ | ||
"name": "custom-translate", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A simple module for replacing words, letters, or patterns in a string with others.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
5731
31