Skip to content

Commit

Permalink
clean: ignorecase for removing "polevka"
Browse files Browse the repository at this point in the history
  • Loading branch information
trnila committed Dec 9, 2023
1 parent 8c0e61a commit 19231b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lunches.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def gather_restaurants(allowed_restaurants=None):
def cleanup(restaurant):
def fix_name(name):
name = unescape(name)
name = re.sub('^\s*Polévka:', '', name)
name = re.sub('^\s*Polévka:', '', name, flags=re.IGNORECASE)
name = re.sub('<[^<]+?>', '', name)
name = re.sub('\s*(,|:)\s*', '\\1 ', name)
name = re.sub('\d+\s*(g|ml|l|ks) ', '', name)
Expand Down

0 comments on commit 19231b9

Please sign in to comment.