@jobber/components 4.15.0 → 4.15.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.
@@ -99,7 +99,7 @@ function InputPhoneNumber(_a) {
99
99
  // Remove special characters from pattern
100
100
  const cleanValue = value.replace(new RegExp(`[${specialCharacters}]`, "g"), "");
101
101
  const cleanValueRequiredLength = (pattern.match(/\*/g) || []).length;
102
- if (cleanValue.length < cleanValueRequiredLength) {
102
+ if (cleanValue.length > 0 && cleanValue.length < cleanValueRequiredLength) {
103
103
  return `${errorSubject} must contain ${cleanValueRequiredLength} or more digits`;
104
104
  }
105
105
  if (typeof (validations === null || validations === void 0 ? void 0 : validations.validate) === "function") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.15.0",
3
+ "version": "4.15.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -83,5 +83,5 @@
83
83
  "> 1%",
84
84
  "IE 10"
85
85
  ],
86
- "gitHead": "ee6d0ff34cc6b097c94a320e6b0391fc83907c66"
86
+ "gitHead": "c9fc7baec569a9583a29e1f9e9016ffb192499f7"
87
87
  }