Fix the secret regexp pattern on web page ()

The error is caused by the web page not handling the post form
failure, which is 400 bad requests in this case.
This commit is contained in:
Nanguan Lin 2023-09-06 04:15:19 +08:00 committed by GitHub
parent bfa22a473e
commit 01e71e2a47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@
id="secret-name"
name="name"
value="{{.name}}"
pattern="^[a-zA-Z_][a-zA-Z0-9_]*$"
pattern="^(?!GITEA_|GITHUB_)[a-zA-Z_][a-zA-Z0-9_]*$"
placeholder="{{.locale.Tr "secrets.creation.name_placeholder"}}"
>
</div>