1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 00:45:46 +00: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>