Skip to content

Commit 88eb261

Browse files
committed
feat: Decoupled is relevant function
1 parent ec37dd3 commit 88eb261

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
async def is_relevant(artifact: str, artefacts: list[str], cve_description: str) -> bool:
2+
artifact_lower = artifact.lower()
3+
if artifact_lower in cve_description.lower():
4+
return True
5+
return artifact in artefacts

0 commit comments

Comments
 (0)