title: jQuery Validate image extension case
body: <p>I am using jquery validate to validate image upload extension. Right now I have something like:</p>
  
  <pre><code>$("#photo").rules("add", {
          accept: "jpg|jpeg|png|"
      });
  </code></pre>
  
  <p>The problem is that this would only accept if the extension is lower case. I could do </p>
  
  <pre><code>$("#photo").rules("add", {
          accept: "jpg|jpeg|png|JPG|JPEG|PNG"
      });
  </code></pre>
  
  <p>But I would like this to work even if the extension is jPG or JPg. I tried this regex:</p>
  
  <pre><code> accept: "/\.(jpe?g|gif|png)$/i"
  </code></pre>
  
  <p>Don't know if my regex is wrong or if the plugin just doesnt accept regex. Any idea? Thanks!</p>