From c9e1e5522cfaa9a9fc4a7074902ddadbcef26c52 Mon Sep 17 00:00:00 2001 From: horus Date: Mon, 12 Feb 2018 23:46:59 +0100 Subject: Bugfix. (crawler) --- crawler/convert_price.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawler/convert_price.go') diff --git a/crawler/convert_price.go b/crawler/convert_price.go index 2d2bc1a..f1c88b4 100644 --- a/crawler/convert_price.go +++ b/crawler/convert_price.go @@ -30,7 +30,7 @@ func convert_price(price string) (int, error) { price = strings.TrimSuffix(strings.ToLower(price), "euro") price = strings.TrimSpace(price) - r, err := regexp.Compile(`[0-9]+([.,][0-9]+)?`) + r, err := regexp.Compile(`([0-9]+[.])?[0-9]+([.,][0-9]+)?`) if err != nil { return 0, err } -- cgit v1.2.3