1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-04 16:42:27 +03:00

plugins/removeViewBox: fix global scope leak

This commit is contained in:
deepsweet
2012-10-02 15:48:59 +04:00
parent ce15a78abe
commit a35f74affd

View File

@ -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] &&