mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
global refactoring dump
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
exports.type = 'perItem';
|
||||
|
||||
exports.active = true;
|
||||
|
||||
var regEnableBackground = /^new\s0\s0\s([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)\s([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)$/,
|
||||
elems = ['svg', 'mask', 'pattern'];
|
||||
|
||||
@ -18,7 +22,7 @@ var regEnableBackground = /^new\s0\s0\s([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)\s([\-+]
|
||||
*
|
||||
* @author Kir Belevich
|
||||
*/
|
||||
exports.cleanupEnableBackground = function(item) {
|
||||
exports.fn = function(item) {
|
||||
|
||||
if (
|
||||
item.isElem(elems) &&
|
||||
|
Reference in New Issue
Block a user