From f134e26c677ac03f8535ede3d7bb3ca717688638 Mon Sep 17 00:00:00 2001 From: Alexandre ABRIOUX Date: Wed, 29 Nov 2023 10:46:48 +0100 Subject: [PATCH] fix(payment-detection): subgraph regex --- packages/payment-detection/src/thegraph/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/payment-detection/src/thegraph/client.ts b/packages/payment-detection/src/thegraph/client.ts index b080dddf7d..85bb0502d0 100644 --- a/packages/payment-detection/src/thegraph/client.ts +++ b/packages/payment-detection/src/thegraph/client.ts @@ -52,7 +52,7 @@ const extractClientOptions = ( const queryOptions: TheGraphQueryOptions = {}; if (minIndexedBlock) { queryOptions.blockFilter = { number_gte: minIndexedBlock }; - } else if (url.match(/https:\/\/gateway-\w.network.thegraph.com/)) { + } else if (url.match(/^https:\/\/gateway-\w+\.network\.thegraph\.com\//)) { // the decentralized network expects an empty object, and doesn't support "undefined" queryOptions.blockFilter = {}; }