Compare commits

...

4 Commits

Author SHA1 Message Date
Aljaž Starc
78588bb335 use gcr.si in CI 2024-06-13 13:21:36 +00:00
Aljaž Starc
201c6be120 use gcr.si 2024-06-13 13:20:17 +00:00
Aljaž Starc
5b353843ee allow up to 19 characters in iban serverside check 2023-11-26 14:56:17 +00:00
Aljaž Starc
0e8213add7 path iban regex 2023-11-26 14:52:10 +00:00
4 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
build-oci: build-oci:
stage: build stage: build
image: registry.gitplac.si/cts/build-oci:1.2.2 image: gcr.si/cts/build-oci:1.2.2
script: [ "/build.sh" ] script: [ "/build.sh" ]
variables: variables:
CTS_BUILD_DOCKERFILE: dockerfile CTS_BUILD_DOCKERFILE: dockerfile

View File

@@ -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('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('amount', /^(?=.{11}$)[0]{1,11}[0-9]{0,11}$/)
check('payment_purpose', /^.{1,42}$/i) check('payment_purpose', /^.{1,42}$/i)
check('iban', /^[A-Z]{2}\d{17}$/) check('iban', /^[A-Z]{2}[A-Z0-9]{17,19}$/)
check('reference', /^[A-Z]{2}[0-9\-]{1,24}$/) 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_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) check('issuer_address', /^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ\-.]{0,31}[A-Z0-9ČŠŽĐ])?$/i)

View File

@@ -19,7 +19,7 @@ spec:
- name: upn-qr-registrypull - name: upn-qr-registrypull
containers: containers:
- name: upn-qr-ct - name: upn-qr-ct
image: registry.gitplac.si/aljaxus/upn-qr image: gcr.si/aljaxus/upn-qr
imagePullPolicy: Always imagePullPolicy: Always
env: env:
- name: POD_NAME - name: POD_NAME

View File

@@ -289,11 +289,11 @@ updateQR()
<h5 id="api-qrcode-iban"><a href="#api-qrcode-iban">&#128279;</a> <code>iban</code></h5> <h5 id="api-qrcode-iban"><a href="#api-qrcode-iban">&#128279;</a> <code>iban</code></h5>
<div> <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> <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> <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> <br>
<span>Example: SI56047500000280672</span> <span>Example: SI56047500000280672</span>
</div> </div>