title: jquery - convert string to object, url got stripped
body: <p>I am converting an string to a object, but it is stripping the link,
  please fix my code so that it cannot strip url/link.
  currently it is stripping this </p>
  
  <p><code>url("http://localhost/xyz.jpg")</code> to <code>url("http</code></p>
  
  <pre><code>        var style = 'background-image:url("http://localhost/xyz.jpg");
                      font-size: 20px;font-weight: 300;padding: 20px 10px;';
          if (typeof style != 'undefined'){
              var att = style.slice(0,-1).split(';');
              var obj = {};
              for (var i = 0; i &lt; att.length; i++) {
                  var parts = att[i].split(':');
                  obj[parts[0]] = parts[1].substring(1);
              }
              console.log( obj);
  }
  </code></pre>
  
  <p>Thanks for your help.</p>