Browse Source

Fix unreasonable file selection in webgen/gen.rb

nagadomi 9 years ago
parent
commit
2c531955ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      webgen/gen.rb

+ 1 - 1
webgen/gen.rb

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