tnx-shared 5.3.262 → 5.3.263

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.
@@ -13698,8 +13698,9 @@
13698
13698
  var value = event.value;
13699
13699
  if (!isArray(value) || !(value === null || value === void 0 ? void 0 : value.length))
13700
13700
  return true;
13701
- var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
13702
- return !value.some(function (x) { return !re.test(String(x).toLowerCase()); });
13701
+ var strValue = value.join(',').replaceAll(' ', '');
13702
+ var re = /^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;,.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$/;
13703
+ return re.test(strValue);
13703
13704
  };
13704
13705
  LstEmailValidator.prototype.getError = function () {
13705
13706
  return 'Có phần tử không đúng định dạng thư điện tử';