Fix unreasonable file selection in webgen/gen.rb
This commit is contained in:
parent
08649a0e21
commit
2c531955ae
|
@ -21,7 +21,7 @@ end
|
|||
def load_locales(dir)
|
||||
locales = {}
|
||||
Dir.entries(dir).each do |ent|
|
||||
if ent =~ /^\w\w.yml$/
|
||||
if ent =~ /\.yml$/
|
||||
lang = File.basename(ent, ".yml")
|
||||
yml = YAML.load_file(File.join(dir, ent))
|
||||
if yml
|
||||
|
|
Loading…
Reference in a new issue