summaryrefslogtreecommitdiff
path: root/crawler/sanitize.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/sanitize.go')
-rw-r--r--crawler/sanitize.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawler/sanitize.go b/crawler/sanitize.go
index c86faff..fc4ee81 100644
--- a/crawler/sanitize.go
+++ b/crawler/sanitize.go
@@ -91,3 +91,11 @@ func sanitize_name(name string) string {
return name
}
+
+func sanitize_price_per(price_noisy string) (price int, err error) {
+ if strings.Contains(price_noisy, "Preis pro Liter") {
+ price_noisy = strings.Replace(price_noisy, "Preis pro Liter", "", -1)
+ }
+
+ return convert_price(price_noisy)
+}