mirror of
https://gitplac.si/aljaxus/upn-qr.git
synced 2025-12-15 19:20:58 +00:00
path iban regex
This commit is contained in:
2
index.js
2
index.js
@@ -37,7 +37,7 @@ app.get('/api/qrcode', async (req, res) => {
|
||||
check('client_city', /^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ]{0,31}[A-Z0-9ČŠŽĐ])?$/i)
|
||||
check('amount', /^(?=.{11}$)[0]{1,11}[0-9]{0,11}$/)
|
||||
check('payment_purpose', /^.{1,42}$/i)
|
||||
check('iban', /^[A-Z]{2}\d{17}$/)
|
||||
check('iban', /^[A-Z]{2}[A-Z0-9]{17}$/)
|
||||
check('reference', /^[A-Z]{2}[0-9\-]{1,24}$/)
|
||||
check('issuer_name', /^[a-zA-Z0-9ČŠŽĐ.'](?:[A-Z0-9 ČŠŽĐ.'\-]{0,31}[A-Z0-9ČŠŽĐ.'])?$/i)
|
||||
check('issuer_address', /^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ\-.]{0,31}[A-Z0-9ČŠŽĐ])?$/i)
|
||||
|
||||
@@ -289,11 +289,11 @@ updateQR()
|
||||
|
||||
<h5 id="api-qrcode-iban"><a href="#api-qrcode-iban">🔗</a> <code>iban</code></h5>
|
||||
<div>
|
||||
<span>Regex: <code>^[A-Z]{2}\d{17}$</code></span>
|
||||
<span>Regex: <code>^[A-Z]{2}[A-Z0-9]{17,19}$</code></span>
|
||||
<br>
|
||||
<span>Demo: <a href="https://regex101.com/r/8bXDvh/1">regex101.com/r/8bXDvh/1</a></span>
|
||||
<span>Demo: <a href="https://regex101.com/r/dN0DsH/1">regex101.com/r/dN0DsH/1</a></span>
|
||||
<br>
|
||||
<span>Description: Must contain country code (exp. SI56). No spaces allowed. Max length 34 characters</span>
|
||||
<span>Description: Must contain country code (exp. SI56). No spaces allowed. Max length 21 characters</span>
|
||||
<br>
|
||||
<span>Example: SI56047500000280672</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user