iain/http_accept_language — pull request #33 by bquorning (2013-12-20 09:35:35+00:00)
Title: Sanitize latinamerican spanish

`#sanitize_available_locales` did not work when called on the Latin America Spanish "es-419" locale:
```rb
HttpAcceptLanguage::Parser.new("").sanitize_available_locales(["es-419"])
# => ["es"]
```
With this patch, the method will return `["es-419"]`.

The `start_with?("x")` may be over-simplified, but so are the specs ;-)

cc/ @pinkvelociraptor @grosser