title: Add .jpg extension to image-urls without extension
body: <p>I get url-images from imgur with <code>'href': article.data.url,</code> (ex: <a href="http://i.imgur.com/eUlT0yz.jpg" rel="nofollow">http://i.imgur.com/eUlT0yz.jpg</a>)</p>
  
  <p>But some times I get these urls-images without <strong>.jpg</strong> extension (ex: <a href="http://imgur.com/6VZeFoS" rel="nofollow">http://imgur.com/6VZeFoS</a>)</p>
  
  <p>So, I would like to convert any url-image-without-extension (or not ending in .jpg) to the format <code>http://i.imgur.com/&lt;ID&gt;.jpg</code> </p>
  
  <p>(ex: <a href="http://imgur.com/6VZeFoS" rel="nofollow">http://imgur.com/6VZeFoS</a> --> becomes --> <a href="http://i.imgur.com/6VZeFoS.jpg" rel="nofollow">http://i.imgur.com/6VZeFoS.jpg</a>)</p>
  
  <p>What I would have to change on code to fix this?</p>
  
  <p>Here the code I used to resolve URLs images: </p>
  
  <pre><code>// getting image URLs
  App.image_domains = {
      'i.imgur.com': function (article) {
          var url = article.data.url;
          var split_url = url.split("imgur.com/");
          if (split_url[1].indexOf(".") === -1) {
              return url + ".jpg";
          }
          return url;
  
      },
      'imgur.com': function (article) {
          var url = article.data.url;
  
          // Ignore album images
          if (url.indexOf("/a/") !== -1) {
              return "";
          }
  
          // Remove unnecessary paths from image URLs
          url = url.replace(/(www\.)?imgur.com/, "i.imgur.com");
          url = url.replace(/\/r\/[^\/]+/, "");
          url = url.replace("/new", "");
          url = url.replace("/gallery", "");
  
          // Make sure the URL doesnt already have an extension
          var split_url = url.split("imgur.com/");
          if (split_url[1].indexOf(".") === -1) {
              url += ".jpg";
          }
  
          return url;
      }
  };
  </code></pre>