mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-20 09:11:40 +01:00
Additional: BIC: allow digits 1-9 in second place of location
It seems that the BIC specification https://en.wikipedia.org/wiki/ISO_9362 was interpreted too strictly, only allowing digits 1 and 2 while those 2 just have a special meaning, but all 1-9 are allowed. Example: SSKNDE77XXX Sparkasse Nuernberg. Closes #1658.
This commit is contained in:
committed by
Markus Staab
parent
e1e415bb14
commit
9ab4b8c32f
@@ -852,7 +852,6 @@ test( "bic", function() {
|
||||
ok( !method( "PBNKDEFFXXX1" ), "Invalid BIC: too long" );
|
||||
ok( !method( "1BNKDEFF" ), "Invalid BIC: invalid digit" );
|
||||
ok( !method( "PBNKDE1F" ), "Invalid BIC: invalid digit" );
|
||||
ok( !method( "PBNKDEF3" ), "Invalid BIC: invalid digit" );
|
||||
ok( !method( "PBNKDEFO" ), "Invalid BIC: invalid char" );
|
||||
ok( !method( "INGDDEFFXAA" ), "Invalid BIC: invalid char" );
|
||||
ok( !method( "DEUTDEF0" ), "Invalid BIC: invalid digit" );
|
||||
@@ -867,6 +866,7 @@ test( "bic", function() {
|
||||
ok( method( "AAFFFRP1" ), "Valid BIC" );
|
||||
ok( method( "DEUTDEFFAB1" ), "Valid BIC" );
|
||||
ok( method( "DEUTDEFFAXX" ), "Valid BIC" );
|
||||
ok( method( "SSKNDE77XXX" ), "Valid BIC" );
|
||||
|
||||
// BIC accept also lowercased values
|
||||
ok( !method( "pbnkdef" ), "Invalid BIC: too short" );
|
||||
|
||||
Reference in New Issue
Block a user