<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Rakefile</filename>
    </added>
    <added>
      <filename>tasks/http_accept_language_tasks.rake</filename>
    </added>
    <added>
      <filename>test/http_accept_language_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -6,9 +6,12 @@ module HttpAcceptLanguage
       l += ';q=1.0' unless l =~ /;q=\d+\.\d+$/
       l.split(';q=')
     end.sort do |x,y|
+      raise &quot;Not correctly formatted&quot; unless x.first =~ /^[a-z\-]+$/i
       y.last.to_f &lt;=&gt; x.last.to_f
     end.collect do |l|
-      l.first.downcase
+      l.first.gsub(/-[a-z]+$/i){|x| x.upcase} 
     end
+  rescue
+    []
   end
 end</diff>
      <filename>lib/http_accept_language.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e07f168ba36e1ae5fdb60039c93700e55377e72f</id>
    </parent>
  </parents>
  <author>
    <name>Iain Hecker</name>
    <email>iain@iain.nl</email>
  </author>
  <url>http://github.com/iain/http_accept_language/commit/82dd7ade7066e844bd5a9bce6a0afb8d8ad6ebe9</url>
  <id>82dd7ade7066e844bd5a9bce6a0afb8d8ad6ebe9</id>
  <committed-date>2008-08-02T16:39:00-07:00</committed-date>
  <authored-date>2008-08-02T16:39:00-07:00</authored-date>
  <message>corrects case to xx-XX and checks for form</message>
  <tree>83ed967701d5f1d28db7ec0359deb01809e7b401</tree>
  <committer>
    <name>Iain Hecker</name>
    <email>iain@iain.nl</email>
  </committer>
</commit>
