From 4c3a61c6ba3d596ffd6319113caecd251bce09f1 Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Thu, 1 Aug 2024 10:16:40 +0200 Subject: [PATCH] chore: applied review remarks --- src/market/scan/scanned-offer.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/market/scan/scanned-offer.ts b/src/market/scan/scanned-offer.ts index 4388d889a..1f1a22726 100644 --- a/src/market/scan/scanned-offer.ts +++ b/src/market/scan/scanned-offer.ts @@ -145,10 +145,9 @@ export class ScannedOffer { * ``` */ get paymentPlatformAddresses(): PaymentPlatformAddressSet { - const propRegex = /golem.com.payment.platform.([a-z0-9-]+).address/; - const platformProps = Object.entries(this.model.properties).filter(([key]) => key.match(propRegex)); + const propRegex = /golem\.com\.payment\.platform\.([a-z0-9-]+)\.address/; - const platformAddress = platformProps + const platformAddress = Object.entries(this.model.properties) .map<[string, string]>(([key, address]) => { const match = key.match(propRegex); return [match ? match[1] : "", address];