Add reference validation

Fixes #158
This commit is contained in:
rubenwardy 2020-12-05 22:29:37 +00:00
parent 5a2ce15f96
commit 64a180ba8f

@ -37,7 +37,8 @@
{{ render_radio_field(form.uploadOpt) }}
{% if package.repo %}
{{ render_field(form.vcsLabel, placeholder="Leave blank to use default branch", class_="mt-3") }}
{{ render_field(form.vcsLabel, placeholder="Leave blank to use default branch", class_="mt-3",
pattern="[A-Za-z0-9/._-]+") }}
{% endif %}
{{ render_field(form.fileUpload, fieldclass="form-control-file", class_="mt-3", accept=".zip") }}