ibantools 4.1.1 → 4.1.2
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/ChangeLog +5 -0
- package/build/ibantools.js +2 -1
- package/jsnext/ibantools.js +2 -1
- package/package.json +1 -1
package/ChangeLog
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
2021-12-14 Saša Jovanić <sasa@simplify.ba>
|
|
2
|
+
* Version 4.1.2
|
|
3
|
+
* Fix issue #83 - Fix problem when country can not be found when calling `validateIBAN`
|
|
4
|
+
|
|
1
5
|
2021-12-05 Saša Jovanić <sasa@simplify.ba>
|
|
6
|
+
* Version 4.1.1
|
|
2
7
|
* Added Hungarian (HU) BBAN validation
|
|
3
8
|
|
|
4
9
|
2021-12-01 Saša Jovanić <sasa@simplify.ba>
|
package/build/ibantools.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @package Documentation
|
|
9
9
|
* @author Saša Jovanić
|
|
10
10
|
* @module ibantools
|
|
11
|
-
* @version 4.1.
|
|
11
|
+
* @version 4.1.2
|
|
12
12
|
* @license MPL-2.0
|
|
13
13
|
* @preferred
|
|
14
14
|
*/
|
|
@@ -71,6 +71,7 @@ function validateIBAN(iban) {
|
|
|
71
71
|
if (!spec || !(spec.bban_regexp || spec.chars)) {
|
|
72
72
|
result.valid = false;
|
|
73
73
|
result.errorCodes.push(ValidationErrorsIBAN.NoIBANCountry);
|
|
74
|
+
return result;
|
|
74
75
|
}
|
|
75
76
|
if (spec && spec.chars && spec.chars !== iban.length) {
|
|
76
77
|
result.valid = false;
|
package/jsnext/ibantools.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @package Documentation
|
|
9
9
|
* @author Saša Jovanić
|
|
10
10
|
* @module ibantools
|
|
11
|
-
* @version 4.1.
|
|
11
|
+
* @version 4.1.2
|
|
12
12
|
* @license MPL-2.0
|
|
13
13
|
* @preferred
|
|
14
14
|
*/
|
|
@@ -68,6 +68,7 @@ export function validateIBAN(iban) {
|
|
|
68
68
|
if (!spec || !(spec.bban_regexp || spec.chars)) {
|
|
69
69
|
result.valid = false;
|
|
70
70
|
result.errorCodes.push(ValidationErrorsIBAN.NoIBANCountry);
|
|
71
|
+
return result;
|
|
71
72
|
}
|
|
72
73
|
if (spec && spec.chars && spec.chars !== iban.length) {
|
|
73
74
|
result.valid = false;
|
package/package.json
CHANGED