nice-elements 1.13.6 → 1.13.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nice-elements",
3
- "version": "1.13.6",
3
+ "version": "1.13.7",
4
4
  "description": "Nice elements used in olaii angular 1.x webapps.",
5
5
  "main": "dist/nice.js",
6
6
  "license": "MIT",
@@ -103,8 +103,7 @@ angular.module('niceElements')
103
103
  $scope.model = Number($scope.model);
104
104
  } else if ($scope.type == "email") {
105
105
  $scope.inputMode = "email";
106
- // TODO: get rid of the errors
107
- $scope.regexexp = new RegExp('^[_a-zA-Z0-9]+(.[_a-zA-Z0-9]+)*@[a-zA-Z0-9]+(.[a-zA-Z0-9]+)+(.[a-zA-Z]{2,4})');
106
+ $scope.regexexp = new RegExp("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$");
108
107
  } else {
109
108
  $scope.internalType = "text";
110
109
  }
@@ -10,7 +10,7 @@ angular.module('niceElements')
10
10
  .service('NiceService', function ($rootScope) {
11
11
  const service = {
12
12
  name: "Nice elements",
13
- version: "1.13.6",
13
+ version: "1.13.7",
14
14
  getHeader: function () {
15
15
  return {};
16
16
  },