Skip to content

Commit

Permalink
link works now
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinOConnell committed Oct 17, 2024
1 parent 480d8f3 commit a3a356d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/[identifier]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand All @@ -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) {
Expand Down

0 comments on commit a3a356d

Please sign in to comment.