diff options
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 } |
