Merge pull request #85 from hlegendre/master

Allow numbers in the ENV variable keys
This commit is contained in:
David Dollar committed 2011-10-12 14:20:50 -07:00
commit 8f1c752a77
1 file changed
+1 -1
+1 -1
View File
@@ -184,7 +184,7 @@ private ######################################################################
return {} unless File.exists?(filename) return {} unless File.exists?(filename)
File.read(filename).split("\n").inject({}) do |hash, line| 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 hash[$1] = $2
end end
hash hash