Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fix: url check
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude authored May 8, 2024
1 parent e1d3509 commit 9a2e569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/links/checkLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const checkLinks = async (
}

if (urlMatch) {
if (allowedLinks.every((link) => urlMatch[0].includes(link))) {
if (allowedLinks.some((link) => urlMatch[0].includes(link))) {
return null;
}
}
Expand Down

0 comments on commit 9a2e569

Please sign in to comment.