From d8a2a839c06c0780441a13e9790d415909a1c462 Mon Sep 17 00:00:00 2001 From: Kevin O'Connell Date: Fri, 30 Aug 2024 11:26:57 -0400 Subject: [PATCH] fix regex --- src/app/[identifier]/page.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/[identifier]/page.tsx b/src/app/[identifier]/page.tsx index 6a50f86..9c83a19 100644 --- a/src/app/[identifier]/page.tsx +++ b/src/app/[identifier]/page.tsx @@ -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 ];