Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinOConnell committed Aug 30, 2024
1 parent 5159281 commit d8a2a83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/[identifier]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ interface ResponseProps {

const isNetworkResponse = (identifier: string): boolean => {
const patterns = [
/^https:\/\/www\.supercast\.xyz\/[a-zA-Z0-9]+$/,
/^https:\/\/www\.supercast\.xyz\/c\/0x[a-fA-F0-9]{40}$/,
/^https:\/\/warpcast\.com\/[a-zA-Z0-9]+$/,
/^https:\/\/warpcast\.com\/[a-zA-Z0-9]+\/0x[a-fA-F0-9]{8}$/,
/^https:\/\/www\.supercast\.xyz\/[^/]+$/,
/^https:\/\/www\.supercast\.xyz\/c\/[^/]+$/,
/^https:\/\/warpcast\.com\/[^/]+$/,
/^https:\/\/warpcast\.com\/[^/]+\/[^/]+$/,
/^0x[a-fA-F0-9]{40}$/,
/^\d+$/, // This pattern matches any string consisting only of digits
];
Expand Down

0 comments on commit d8a2a83

Please sign in to comment.