diff options
| author | horus | 2018-02-12 23:46:59 +0100 |
|---|---|---|
| committer | horus | 2018-02-12 23:46:59 +0100 |
| commit | c9e1e5522cfaa9a9fc4a7074902ddadbcef26c52 (patch) | |
| tree | b1da2dc08105978d32d542e95050d73ec9514d60 /crawler/convert_price.go | |
| parent | e39be64451a09dd18e7b1996d95d90eb077487ab (diff) | |
| download | alkobote-c9e1e5522cfaa9a9fc4a7074902ddadbcef26c52.tar.gz | |
Bugfix. (crawler)
Diffstat (limited to 'crawler/convert_price.go')
| -rw-r--r-- | crawler/convert_price.go | 2 |
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 } |
