ps-toolkit-ui 1.14.10 → 1.14.11
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/bundles/ps-toolkit-ui.umd.js +3 -0
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/helper.class.js +4 -1
- package/fesm2015/ps-toolkit-ui.js +3 -0
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1075,6 +1075,9 @@
|
|
|
1075
1075
|
return HelperClass.nationalCodeNaturalValid(c) || HelperClass.nationalNumValid(c);
|
|
1076
1076
|
};
|
|
1077
1077
|
HelperClass.nationalCodeNaturalValid = function (c) {
|
|
1078
|
+
if (!c) {
|
|
1079
|
+
return false;
|
|
1080
|
+
}
|
|
1078
1081
|
return HelperClass.nationalCodeValid(c) || (c.length === 14 && HelperClass.nationalCodeValid(c.substr(0, 10)));
|
|
1079
1082
|
};
|
|
1080
1083
|
HelperClass.nationalCodeValid = function (c) {
|