@optimiser/common 1.0.359 → 1.0.361

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/lib/event.js CHANGED
@@ -113,10 +113,7 @@ var Event = /** @class */ (function () {
113
113
  }
114
114
  }
115
115
  },
116
- data: {
117
- title: notificationDataObj.title,
118
- body: notificationDataObj.message
119
- }
116
+ data: notificationDataObj // changes done by komal, to get data attr val in notification
120
117
  };
121
118
  _a.label = 3;
122
119
  case 3:
@@ -4544,7 +4544,7 @@ function CapitalizeFirstLetter(str) {
4544
4544
  return str.charAt(0).toUpperCase() + str.slice(1);
4545
4545
  }
4546
4546
  function EmailValidation(elmValue) {
4547
- var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
4547
+ var filter = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,})$/;
4548
4548
  if (filter.test(elmValue)) {
4549
4549
  return true;
4550
4550
  }
@@ -4854,7 +4854,7 @@ function ValidateUserInput(options) {
4854
4854
  return [3 /*break*/, 54];
4855
4855
  case 7:
4856
4856
  {
4857
- filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
4857
+ filter = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,})$/;
4858
4858
  if (!filter.test(fieldData)) {
4859
4859
  msg = fieldData + ' is invalid email for ' + field.DisplayName + '!';
4860
4860
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.359",
3
+ "version": "1.0.361",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {