Permalink
Browse files

Merge pull request #85 from hlegendre/master

Allow numbers in the ENV variable keys
  • Loading branch information...
2 parents 86e4251 + ddf25fe commit 8f1c752a77fed9e394382c94ff54130df9ad78db @ddollar ddollar committed Oct 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/foreman/engine.rb
View
@@ -184,7 +184,7 @@ def read_environment(filename)
return {} unless File.exists?(filename)
File.read(filename).split("\n").inject({}) do |hash, line|
- if line =~ /\A([A-Za-z_]+)=(.*)\z/
+ if line =~ /\A([A-Za-z_0-9]+)=(.*)\z/
hash[$1] = $2
end
hash

0 comments on commit 8f1c752

Please sign in to comment.