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:
@ -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] &&
|
||||
|
Reference in New Issue
Block a user