From 9bdf62d3f407db47db0390767cb9f7352b613d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Tamargo?= Date: Wed, 13 Nov 2024 11:07:17 +0100 Subject: [PATCH] Remove unneeded regexes These names are just "blog" and "review". --- root/layout/components/ExternalLinks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/layout/components/ExternalLinks.js b/root/layout/components/ExternalLinks.js index a787daf1e46..b40bc44eee0 100644 --- a/root/layout/components/ExternalLinks.js +++ b/root/layout/components/ExternalLinks.js @@ -108,7 +108,7 @@ component ExternalLinks( url={target} />, ); - } else if (/^blog$/.test(linkType.name)) { + } else if (linkType.name === 'blog') { blogsAndReviews.push( , ); - } else if (/^review$/.test(linkType.name)) { + } else if (linkType.name === 'review') { blogsAndReviews.push(