Permalink
Browse files

Simplify #sanitize_available_locales

Maybe simplified too much?
  • Loading branch information...
1 parent d2c764f commit de70c0aeb0e05d8efea525fadd466cc0eb77085f @bquorning bquorning committed Dec 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http_accept_language/parser.rb
@@ -74,7 +74,7 @@ def sanitize_available_locales(available_languages)
split_locale = avail.split(/[_-]/)
split_locale.map do |e|
- e unless e.match(/x|[0-9*]/)
+ e unless e.start_with?("x")
end.compact.join("-")
end
end

0 comments on commit de70c0a

Please sign in to comment.