File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -34689,6 +34689,7 @@ exports.phpIcons = [
3468934689 {
3469034690 query: "symfony/",
3469134691 icon: "https://symfony.com/logos/symfony_black_03.svg",
34692+ exclude: ["polyfill", "var-dumper"]
3469234693 },
3469334694];
3469434695exports.jsIcons = [];
@@ -34698,9 +34699,17 @@ const find = (dependencies, icons) => {
3469834699 const names = Object.keys(dependencies);
3469934700 for (const name of names) {
3470034701 for (const icon of icons) {
34701- if (name.includes(icon.query)) {
34702+ if (!name.includes(icon.query)) {
34703+ continue;
34704+ }
34705+ if (!icon.exclude) {
3470234706 return icon.icon;
3470334707 }
34708+ for (const exclude of icon.exclude) {
34709+ if (name.includes(exclude)) {
34710+ return icon.icon;
34711+ }
34712+ }
3470434713 }
3470534714 }
3470634715 return undefined;
You can’t perform that action at this time.
0 commit comments