code: function getViewBox(svgoResult) {
      var viewBoxMatch = svgoResult.data.match(/viewBox="([-\d\.]+\s[-\d\.]+\s[-\d\.]+\s[-\d\.]+)"/);
      var viewBox = '0 0 200 200';
      if (viewBoxMatch && viewBoxMatch.length > 1) {
          viewBox = viewBoxMatch[1];
      }
      else if (svgoResult.info.height && svgoResult.info.width) {
          viewBox = "0 0 " + svgoResult.info.width + " " + svgoResult.info.height;
      }
      return viewBox;
  }
docs: get svg viewbox