فهرست منبع

Fix unreasonable file selection in webgen/gen.rb

nagadomi 9 سال پیش
والد
کامیت
2c531955ae
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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