mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
Check for "href’ by local name
This commit is contained in:
@ -20,8 +20,7 @@ exports.fn = function(item) {
|
||||
|
||||
if (
|
||||
item.isElem('image') &&
|
||||
item.hasAttr('xlink:href') &&
|
||||
/(\.|image\/)(jpg|png|gif)/.test(item.attr('xlink:href').value)
|
||||
item.hasAttrLocal('href', /(\.|image\/)(jpg|png|gif)/)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user