normalise IBAN
This commit is contained in:
parent
ed69f3343f
commit
34008057c8
@ -82,7 +82,7 @@
|
|||||||
<label class="item">
|
<label class="item">
|
||||||
<span class="fh">IBAN</span><br>
|
<span class="fh">IBAN</span><br>
|
||||||
<span class="sh">Please make sure to enter any letters in upper case.</span><br>
|
<span class="sh">Please make sure to enter any letters in upper case.</span><br>
|
||||||
<input name="iban" id="iban" pattern="[A-Z]{2}\d{2}[A-Z0-9]+" />
|
<input name="iban" id="iban" pattern="[A-Z]{2}\d{2}\s?[A-Z0-9\s]+" />
|
||||||
</label>
|
</label>
|
||||||
<label class="item">
|
<label class="item">
|
||||||
<span class="fh">BIC</span><br>
|
<span class="fh">BIC</span><br>
|
||||||
|
@ -85,7 +85,7 @@ async function saveOptions(ev) {
|
|||||||
let streetAddr = this.querySelector('#addr1').value;
|
let streetAddr = this.querySelector('#addr1').value;
|
||||||
let postCode = this.querySelector('#postcode').value;
|
let postCode = this.querySelector('#postcode').value;
|
||||||
let placeName = this.querySelector('#placename').value;
|
let placeName = this.querySelector('#placename').value;
|
||||||
let iban = this.querySelector('#iban').value;
|
let iban = this.querySelector('#iban').value.replaceAll(" ", "");
|
||||||
if (iban != "" && !ibanValidate(iban)) {
|
if (iban != "" && !ibanValidate(iban)) {
|
||||||
putError("Please check your IBAN for typing errors.");
|
putError("Please check your IBAN for typing errors.");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user