Skip to content

Commit

Permalink
Fix the variable regexp pattern on web page (#27161)
Browse files Browse the repository at this point in the history
same as (#26910)
  • Loading branch information
lng2020 authored Sep 21, 2023
1 parent e46274b commit 218e719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/shared/variables/variable_list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 218e719

Please sign in to comment.