Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: merge attributes without tag and attributes with tag #408

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/plugins/sources-plugin.js
Expand Up @@ -41,9 +41,10 @@ export default (options) =>

name = attribute.prefix ? `${attribute.prefix}:${name}` : name;

const handlers =
options.sources.list.get(tagName.toLowerCase()) ||
options.sources.list.get("*");
const handlers = new Map([
...(options.sources.list.get("*") || new Map()),
...(options.sources.list.get(tagName.toLowerCase()) || new Map()),
]);

if (!handlers) {
return;
Expand Down