Skip to content

Commit b5092a9

Browse files
Update src/apm_cli/core/script_runner.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fd77f82 commit b5092a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/apm_cli/core/script_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def _execute_runtime_command(self, command: str, content: str, env: dict) -> sub
335335
key, value = arg.split('=', 1)
336336
# Validate environment variable name with restrictive pattern
337337
# Only allow uppercase letters, numbers, and underscores, starting with letter or underscore
338-
if re.match(r'^[A-Z_][A-Z0-9_]*$', key):
338+
if re.match(r'^[a-zA-Z_][a-zA-Z0-9_]*$', key):
339339
env_vars[key] = value
340340
continue
341341
# Once we hit a non-env-var argument, everything else is part of the command

0 commit comments

Comments
 (0)