rc-field-form
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -20,3 +20,6 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; | ||
function replaceMessage(template, kv) { | ||
return template.replace(/\$\{\w+\}/g, function (str) { | ||
return template.replace(/\\?\$\{\w+\}/g, function (str) { | ||
if (str.startsWith('\\')) { | ||
return str.slice(1); | ||
} | ||
var key = str.slice(2, -1); | ||
@@ -23,0 +26,0 @@ return kv[key]; |
@@ -27,3 +27,6 @@ "use strict"; | ||
function replaceMessage(template, kv) { | ||
return template.replace(/\$\{\w+\}/g, function (str) { | ||
return template.replace(/\\?\$\{\w+\}/g, function (str) { | ||
if (str.startsWith('\\')) { | ||
return str.slice(1); | ||
} | ||
var key = str.slice(2, -1); | ||
@@ -30,0 +33,0 @@ return kv[key]; |
{ | ||
"name": "rc-field-form", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "React Form Component", | ||
@@ -5,0 +5,0 @@ "typings": "es/index.d.ts", |
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
291458
6721