1
0
Fork 0
mirror of synced 2024-05-18 20:02:25 +12:00

Fix unreasonable file selection in webgen/gen.rb

This commit is contained in:
nagadomi 2016-04-16 23:42:37 +09:00
parent 08649a0e21
commit 2c531955ae

View file

@ -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