@fkui/i18next-translate 5.46.0 → 5.46.4

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/dist/cjs/index.js CHANGED
@@ -6297,7 +6297,8 @@ const WHITELIST_REGEXP = /^[a-zA-Z0-9 .,\-()\r\n?+=!:@*\xC0-\xFF]*$/;
6297
6297
  const whitelistValidator = {
6298
6298
  name: "whitelist",
6299
6299
  instant: true,
6300
- validation(value) {
6300
+ validation(_value, element) {
6301
+ const value = "value" in element ? element.value : "";
6301
6302
  return isEmpty(value) || WHITELIST_REGEXP.test(value);
6302
6303
  },
6303
6304
  };