Skip to content

Commit 8d7c2d9

Browse files
committed
Fix regex
1 parent cc31b44 commit 8d7c2d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/supportedNetworks/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ function getSubgraphsSupportLevelAndProvider(network: Network): ['none' | 'basic
6969
const providers = [...new Set([...(network.services.subgraphs || []), ...(network.services.sps || [])])]
7070
if (providers.length > 0) {
7171
let provider = providers[0]!
72-
if (providers.some((provider) => /^((https?:)?\/\/)?api\.studio\.thegraph\.com\//.test(provider))) {
72+
if (providers.some((provider) => /^((https?:)?\/\/)?api\.studio\.thegraph\.com(\/|$)/.test(provider))) {
7373
provider = 'Subgraph Studio'
74-
} else if (providers.some((provider) => /^((https?:)?\/\/)?(www\.)?streamingfast\.io\//.test(provider))) {
74+
} else if (providers.some((provider) => /^((https?:)?\/\/)?(www\.)?streamingfast\.io(\/|$)/.test(provider))) {
7575
provider = 'StreamingFast'
7676
}
7777
if (network.issuanceRewards) {

0 commit comments

Comments
 (0)