1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Update minor and patch dependencies (#1528)

* @rollup/plugin-node-resolve  ^11.2.0  →  ^11.2.1
* @types/jest                  ^27.0.0  →  ^27.0.1
* colorette                     ^1.2.2  →   ^1.3.0
* commander                     ^7.1.0  →   ^7.2.0
* css-tree                      ^1.1.2  →   ^1.1.3
* eslint                       ^7.22.0  →  ^7.32.0
* playwright                    ^1.9.2  →  ^1.14.0
* prettier                      ^2.2.1  →   ^2.3.2
* rollup                       ^2.42.1  →  ^2.56.2
* typescript                    ^4.2.3  →   ^4.3.5
This commit is contained in:
XhmikosR
2021-08-15 13:57:58 +03:00
committed by GitHub
parent 9b8f13e911
commit 75ec2943b0
7 changed files with 374 additions and 848 deletions

View File

@ -27,7 +27,8 @@ exports.description =
* @author Kir Belevich
*/
exports.fn = function (root) {
const regEnableBackground = /^new\s0\s0\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)$/;
const regEnableBackground =
/^new\s0\s0\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)$/;
let hasFilter = false;
const elems = ['svg', 'mask', 'pattern'];
@ -39,9 +40,8 @@ exports.fn = function (root) {
node.attributes.width != null &&
node.attributes.height != null
) {
const match = node.attributes['enable-background'].match(
regEnableBackground
);
const match =
node.attributes['enable-background'].match(regEnableBackground);
if (match) {
if (