0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-04 05:09:03 +01:00

Fix the variable regexp pattern on web page (#27161)

same as (https://github.com/go-gitea/gitea/pull/26910)
This commit is contained in:
Nanguan Lin 2023-09-21 17:03:13 +08:00 committed by GitHub
parent e46274b5b4
commit 218e719ea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@
name="name"
id="dialog-variable-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>