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
1 changed files with 1 additions and 1 deletions

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>