summaryrefslogtreecommitdiff
path: root/crawler/convert_price.go
diff options
context:
space:
mode:
authorhorus2018-02-12 23:46:59 +0100
committerhorus2018-02-12 23:46:59 +0100
commitc9e1e5522cfaa9a9fc4a7074902ddadbcef26c52 (patch)
treeb1da2dc08105978d32d542e95050d73ec9514d60 /crawler/convert_price.go
parente39be64451a09dd18e7b1996d95d90eb077487ab (diff)
downloadalkobote-c9e1e5522cfaa9a9fc4a7074902ddadbcef26c52.tar.gz
Bugfix. (crawler)
Diffstat (limited to 'crawler/convert_price.go')
-rw-r--r--crawler/convert_price.go2
1 files changed, 1 insertions, 1 deletions
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
}