diff options
author | Jochen Topf <jochen@topf.org> | 2014-11-23 21:07:01 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-11-23 21:07:01 +0100 |
commit | 144f22d9eab5d5a8ce04ae9793c28773f4edfcae (patch) | |
tree | c9d55c19ab4b288fb65c14b45956770af846a75f | |
parent | e5a2c391a05e1ef13dd2d58efba130538bd013f9 (diff) | |
download | taginfo-144f22d9eab5d5a8ce04ae9793c28773f4edfcae.tar taginfo-144f22d9eab5d5a8ce04ae9793c28773f4edfcae.tar.gz |
Fix language code regexp.
-rwxr-xr-x | web/taginfo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/taginfo.rb b/web/taginfo.rb index dcb3d3e..d25436f 100755 --- a/web/taginfo.rb +++ b/web/taginfo.rb @@ -188,7 +188,7 @@ class Taginfo < Sinatra::Base #------------------------------------- - get %r{^/js/([a-z][a-z])/(.*).js$} do |lang, js| + get %r{^/js/([a-z][a-z](-[a-zA-Z]+)?)/(.*).js$} do |lang, dummy, js| expires next_update @lang = lang @trans = R18n::I18n.new(lang, 'i18n') |