We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4d0d44 commit 974271fCopy full SHA for 974271f
src/modules/sepa.js
@@ -172,6 +172,8 @@
172
};
173
174
175
+
176
177
$.formUtils.addValidator({
178
name: 'sepageneral',
179
validatorFunction: generalValidatorFunction,
@@ -185,6 +187,15 @@
185
187
return countryIBAN(sepa) && generalValidatorFunction(sepa);
186
188
},
189
errorMessage: '',
- errorMessageKey:'badIpan'
190
+ errorMessageKey:'badIban'
191
+ });
192
+ $.formUtils.addValidator({
193
+ name: 'bic',
194
+ validatorFunction: function(bic) {
195
+ var regextest = new RegExp('[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$');
196
+ return regextest.test(bic);
197
+ },
198
+ errorMessage: '',
199
+ errorMessageKey:'badBic'
200
});
201
})(jQuery);
0 commit comments