Skip to content

Commit

Permalink
Remove unneeded regexes
Browse files Browse the repository at this point in the history
These names are just "blog" and "review".
  • Loading branch information
reosarevok committed Nov 14, 2024
1 parent b4047b5 commit 9bdf62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/layout/components/ExternalLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ component ExternalLinks(
url={target}
/>,
);
} else if (/^blog$/.test(linkType.name)) {
} else if (linkType.name === 'blog') {
blogsAndReviews.push(
<ExternalLink
className="blog-favicon"
Expand All @@ -119,7 +119,7 @@ component ExternalLinks(
url={target}
/>,
);
} else if (/^review$/.test(linkType.name)) {
} else if (linkType.name === 'review') {
blogsAndReviews.push(
<ExternalLink
className="review-favicon"
Expand Down

0 comments on commit 9bdf62d

Please sign in to comment.