Skip to content

Commit b34727c

Browse files
GiteaBotlng2020
andauthored
Fix the variable regexp pattern on web page (#27161) (#27164)
Backport #27161 by @lng2020 same as (#26910) Co-authored-by: Nanguan Lin <[email protected]>
1 parent 0ca2332 commit b34727c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/shared/variables/variable_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
name="name"
7474
id="dialog-variable-name"
7575
value="{{.name}}"
76-
pattern="^[a-zA-Z_][a-zA-Z0-9_]*$"
76+
pattern="^(?!GITEA_|GITHUB_)[a-zA-Z_][a-zA-Z0-9_]*$"
7777
placeholder="{{.locale.Tr "secrets.creation.name_placeholder"}}"
7878
>
7979
</div>

0 commit comments

Comments
 (0)