Comparing version 1.5.0 to 1.5.1
@@ -11,3 +11,3 @@ /*! | ||
* @see module:ibantools | ||
* @version 1.5.0 | ||
* @version 1.5.1 | ||
* @license MPL-2.0 | ||
@@ -239,3 +239,3 @@ */ | ||
function isValidBIC(bic) { | ||
var reg = new RegExp('^[a-zA-Z]{6}[a-zA-Z0-9]{2}[A-Z0-9]{0,3}$', ''); | ||
var reg = new RegExp('^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$', ''); | ||
return reg.test(bic); | ||
@@ -242,0 +242,0 @@ } |
@@ -11,3 +11,3 @@ /*! | ||
* @see module:ibantools | ||
* @version 1.5.0 | ||
* @version 1.5.1 | ||
* @license MPL-2.0 | ||
@@ -231,3 +231,3 @@ */ | ||
export function isValidBIC(bic) { | ||
var reg = new RegExp('^[a-zA-Z]{6}[a-zA-Z0-9]{2}[A-Z0-9]{0,3}$', ''); | ||
var reg = new RegExp('^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$', ''); | ||
return reg.test(bic); | ||
@@ -234,0 +234,0 @@ } |
{ | ||
"name": "ibantools", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Validation, extraction and creation of IBAN, BBAN, BIC/SWIFT numbers plus some other helpful stuff", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
62924