diff options
| author | horus | 2018-06-16 15:15:36 +0200 |
|---|---|---|
| committer | horus | 2018-06-16 15:15:36 +0200 |
| commit | db6fa4428e8b6d6c7fd845463a93d83affbf880b (patch) | |
| tree | 1d2eaaea054fd2aec663ca54fe075df8ba583e8c /crawler/sanitize.go | |
| parent | a25368ce25e3de3add81e4347639a9b0401750a7 (diff) | |
| download | alkobote-db6fa4428e8b6d6c7fd845463a93d83affbf880b.tar.gz | |
Detects cl in sanitize_name(). (crawler)
Diffstat (limited to 'crawler/sanitize.go')
| -rw-r--r-- | crawler/sanitize.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawler/sanitize.go b/crawler/sanitize.go index 4a5197b..262bfa6 100644 --- a/crawler/sanitize.go +++ b/crawler/sanitize.go @@ -112,7 +112,7 @@ func sanitize_name(name string) string { name = strings.Replace(name, age_noisy, age+" Jahre ", 1) } - r_liter, err := regexp.Compile(`[0-9]+([,.][0-9]+)?( )?[lL](iter)?`) + r_liter, err := regexp.Compile(`[0-9]+([,.][0-9]+)?( )?[cC]?[lL]((iter)|(tr))?`) if err != nil { Fatal(err, "sanitize_name: Liter-Regexp failed") } |
