Skip to content

Commit

Permalink
secret name store uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Dec 25, 2024
1 parent 823dd10 commit 37a8a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managed_secrets/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def edit_secret_button_with_dialog(
onKeyUp="setValue(value.replace(/ /g, '_').replace(/[^a-zA-Z0-9_\$]/g, ''))",
key="secret:name",
value=secret and secret.name,
)
).upper()
if name and name[0].isdigit():
gui.error(
"Secret name must be a valid JS variable name and cannot start with a number."
Expand Down

0 comments on commit 37a8a17

Please sign in to comment.