title: Wrap substring in double quotes if it's not in regex
body: <p>The below @font-face CSS directive does not work in IE 11 unless the font-family is wrapped in double quotes manually which is what I want to automate using regex. I've come close so far but struggling to detect if the matched string has quotes or not.</p>
  
  <pre><code>'@font-face {font-style: normal;font-family: f11;font-variant: normal;font-weight: normal; }'.replace(/font-family\:(.*?)\;/, "font-family: \"$1\";");
  </code></pre>
  
  <p>If you run following string in console, you'll see,</p>
  
  <pre><code>@font-face {font-style: normal;font-family: " f11";font-variant: normal;font-weight: normal; }
  </code></pre>
  
  <p>Two things I want to do:</p>
  
  <ol>
  <li>Remove space from the matched string, currently it's <code>&lt;SPACE&gt;f11</code>.</li>
  <li>Check for quotes in the match.</li>
  </ol>