1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

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

Backport #27161 by @lng2020

same as (https://github.com/go-gitea/gitea/pull/26910)

Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
This commit is contained in:
Giteabot 2023-09-21 20:09:44 +08:00 committed by GitHub
parent 0ca233258d
commit b34727c632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@
name="name" name="name"
id="dialog-variable-name" id="dialog-variable-name"
value="{{.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"}}" placeholder="{{.locale.Tr "secrets.creation.name_placeholder"}}"
> >
</div> </div>