@luftborn/custom-elements 2.3.0 → 2.3.1

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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var SEPersonalNumberValidator = /** @class */ (function () {
4
4
  function SEPersonalNumberValidator() {
5
- this.regex = new RegExp('^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([\+\-]?)((?!000)\d{3})(\d)$');
5
+ this.regex = new RegExp(/^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([\+\-]?)((?!000)\d{3})(\d)$/);
6
6
  }
7
7
  SEPersonalNumberValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
8
8
  if (allowEmpty === void 0) { allowEmpty = true; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luftborn/custom-elements",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "custom HTML elements for the form builder application ",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -2,7 +2,7 @@ import IValidation from '../IValidator.interface';
2
2
 
3
3
  export default class SEPersonalNumberValidator implements IValidation {
4
4
  private regex: RegExp = new RegExp(
5
- '^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([\+\-]?)((?!000)\d{3})(\d)$'
5
+ /^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([\+\-]?)((?!000)\d{3})(\d)$/
6
6
  );
7
7
 
8
8