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:
@ -91,7 +91,7 @@ exports.fn = function(data, params) {
|
||||
|
||||
// save IDs href references
|
||||
else if (
|
||||
attr.name === 'xlink:href' && (match = attr.value.match(regReferencesHref)) ||
|
||||
attr.local === 'href' && (match = attr.value.match(regReferencesHref)) ||
|
||||
attr.name === 'begin' && (match = attr.value.match(regReferencesBegin))
|
||||
) {
|
||||
key = idPrefix + match[1];
|
||||
|
Reference in New Issue
Block a user