kui-utils 0.0.32 → 0.0.34
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/cjs/index.js +3 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -698,7 +698,7 @@ var countries = [
|
|
|
698
698
|
nameCode: "hr",
|
|
699
699
|
nameRus: "Хорватия",
|
|
700
700
|
phoneCode: "385",
|
|
701
|
-
mask: "-00-000-
|
|
701
|
+
mask: "-00-000-0000",
|
|
702
702
|
},
|
|
703
703
|
{
|
|
704
704
|
name: "Cuba",
|
|
@@ -1968,6 +1968,8 @@ var getPhoneNumberFromPhoneParams = function (_a, fill) {
|
|
|
1968
1968
|
|
|
1969
1969
|
var getPhoneParamsFromString = function (phone) {
|
|
1970
1970
|
var _a;
|
|
1971
|
+
if (!phone)
|
|
1972
|
+
return null;
|
|
1971
1973
|
var formattedPhone = phone.replace(/\D/g, "");
|
|
1972
1974
|
var phoneDigits = formattedPhone.split("");
|
|
1973
1975
|
var phoneCode = ((_a = __spreadArray([], countries, true).find(function (country) {
|