Merge pull request #85 from hlegendre/master

Allow numbers in the ENV variable keys
This commit is contained in:
David Dollar
2011-10-12 14:20:50 -07:00
+1 -1
View File
@@ -184,7 +184,7 @@ private ######################################################################
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