From a3a356dd8154bea16f0f968c47dbeafdaaa6b963 Mon Sep 17 00:00:00 2001 From: Kevin O'Connell Date: Thu, 17 Oct 2024 16:01:59 -0700 Subject: [PATCH] link works now --- src/app/[identifier]/page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/[identifier]/page.tsx b/src/app/[identifier]/page.tsx index e20ce0b..da18b68 100644 --- a/src/app/[identifier]/page.tsx +++ b/src/app/[identifier]/page.tsx @@ -3,6 +3,7 @@ import CastSearch from '@/components/CastSearch'; import NetworkResponse from '@/components/NetworkResponse'; import Search from '@/components/search'; import SearchComponent from '@/components/SearchComponent'; +import { isFollowSyntax } from '@/lib/helpers'; interface ResponseProps { params: { identifier: string }; @@ -18,7 +19,10 @@ const isNetworkResponse = (identifier: string): boolean => { /^\d+$/, // This pattern matches any string consisting only of digits ]; - return patterns.some((pattern) => pattern.test(identifier)); + return ( + patterns.some((pattern) => pattern.test(identifier)) || + isFollowSyntax(identifier) + ); }; export default function Page({ params }: ResponseProps) {