Skip to content

Commit 78ee68c

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 364a258 commit 78ee68c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/rake_ui/rake_task.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def build_rake_command(args: nil, environment: nil)
126126
end
127127

128128
escaped_env = tokens.map do |token|
129-
next unless token.match?(/\A[A-Z_][A-Z0-9_]*=.+\z/i)
129+
next unless token.match?(/\A[A-Z_][A-Z0-9_]*=.*\z/i)
130130

131131
# Valid KEY=VALUE pattern - escape only the value
132132
key, value = token.split("=", 2)

0 commit comments

Comments
 (0)