diff --git a/plugins/removeViewBox.js b/plugins/removeViewBox.js index 6c753c1c..49540aa2 100644 --- a/plugins/removeViewBox.js +++ b/plugins/removeViewBox.js @@ -26,6 +26,8 @@ exports.removeViewBox = function(item, params) { item.hasAttr('height') ) { + var match; + if (match = item.attr('viewBox').value.match(regViewBox)) { if ( item.attr('width').value == match[1] &&