From a35f74affdc26a0a5b58b3aeec70a4a43d95e63c Mon Sep 17 00:00:00 2001 From: deepsweet Date: Tue, 2 Oct 2012 15:48:59 +0400 Subject: [PATCH] plugins/removeViewBox: fix global scope leak --- plugins/removeViewBox.js | 2 ++ 1 file changed, 2 insertions(+) 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] &&