We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757d0e8 commit ea7c6c7Copy full SHA for ea7c6c7
src/Descriptor.ts
@@ -106,7 +106,8 @@ export class Descriptor {
106
// Set the attributes.
107
if (rule.attributes) {
108
for (const attribute of rule.attributes) {
109
- if (this.sanitize !== 'off' && immediatelySanitizedAttributes.includes(attribute.name)) continue;
+ if ((this.sanitize === 'all' || (this.sanitize === 'imports' && this.isImported))
110
+ && immediatelySanitizedAttributes.includes(attribute.name)) continue;
111
let value = '';
112
if (attribute.value?.type === 'String') {
113
value = attribute.value.value;
0 commit comments