From 5870284cfd3e95e06026dc4919aa4ff1917cc2d9 Mon Sep 17 00:00:00 2001 From: flygrounder Date: Wed, 12 Jun 2019 10:27:33 +0300 Subject: [PATCH] Improved SCG search --- cardsinfo/scgprices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cardsinfo/scgprices.go b/cardsinfo/scgprices.go index 7193f04..b23057d 100644 --- a/cardsinfo/scgprices.go +++ b/cardsinfo/scgprices.go @@ -21,7 +21,7 @@ func GetSCGPrices(name string) ([]CardPrice, error) { } func preprocessNameForSearch(name string) string { - return strings.Replace(name, "|", "", 1) + return strings.Split(name, "|")[0] } func fetchPrices(doc *html.Node) ([]CardPrice, error) {