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

plugins/removeViewBox: more strict logic

This commit is contained in:
deepsweet
2012-10-02 15:47:27 +04:00
parent 8dd8be26b8
commit ce15a78abe

View File

@ -1,5 +1,5 @@
var regViewBox = /^0\s0\s(\d+)\s(\d+)$/,
viewBoxElems = ['svg', 'marker', 'pattern', 'symbol', 'view'];
viewBoxElems = ['svg', 'pattern'];
/**
* Remove viewBox attr which coincides with a width/height box.