summaryrefslogtreecommitdiff
path: root/web/taginfo.rb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-11-23 21:07:01 +0100
committerJochen Topf <jochen@topf.org>2014-11-23 21:07:01 +0100
commit144f22d9eab5d5a8ce04ae9793c28773f4edfcae (patch)
treec9d55c19ab4b288fb65c14b45956770af846a75f /web/taginfo.rb
parente5a2c391a05e1ef13dd2d58efba130538bd013f9 (diff)
downloadtaginfo-144f22d9eab5d5a8ce04ae9793c28773f4edfcae.tar
taginfo-144f22d9eab5d5a8ce04ae9793c28773f4edfcae.tar.gz
Fix language code regexp.
Diffstat (limited to 'web/taginfo.rb')
-rwxr-xr-xweb/taginfo.rb2
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')