mikel-eval 0.21.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -242,7 +242,7 @@ const defaultFunctions = {
|
|
|
242
242
|
if (typeof str !== "string") {
|
|
243
243
|
throw new Error(`replace() expects a string, got ${typeof str}`);
|
|
244
244
|
}
|
|
245
|
-
return str.
|
|
245
|
+
return str.replaceAll(search, replacement || "");
|
|
246
246
|
},
|
|
247
247
|
toUpperCase: str => {
|
|
248
248
|
if (typeof str !== "string") {
|