Skip to content

Commit

Permalink
fix: url check (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed May 8, 2024
1 parent e1d3509 commit 0048b2b
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 0048b2b

Please sign in to comment.