Numbers should be allowed in key names of ENV no ?

This commit is contained in:
Hugues Le Gendre
2011-10-12 17:06:37 +03:00
parent 86e4251840
commit ddf25fe0ea

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