Skip to content

Commit 149797f

Browse files
authored
[pkg manager] allow 'component' in accept condition
1 parent a1b6cb7 commit 149797f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PackageManager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,9 @@ export class PackageManager {
10891089
.replace(/\?/g, '.')
10901090
.replace(/\*/g, '.*?'), 'i');
10911091
}
1092+
if (accept.$Cclass && accept.$Cgroup) {
1093+
condition.component = this.makeComponentGroupName(accept.$Cclass, accept.$Cgroup, accept.$Csub);
1094+
}
10921095

10931096
if (Object.keys(condition).length > 0) {
10941097
cGroup.acceptList.push(condition);

0 commit comments

Comments
 (0)