srehwald / eat-api

Simple static API for some (student) food places in Munich.
https://srehwald.github.io/eat-api/
MIT License
14 stars 20 forks source link

KW03 → KW_03, but use regex for much more cases #17

Closed raabf closed 6 years ago

raabf commented 6 years ago

Luckily you already changed to the new pdf naming scheme for this week in b87604d84631ccc9924d908bbcbcbdc65a050b52, but they seem to not pay attention to consistent naming—probably the name will differ soon again or they switch regularly between multiple naming schemes.

To counter those multiple possibilities and be prepared for future, I started to use regexes instead of fixed strings.

check out some examples (and add more if you want, the regex should work for many cases I think)

srehwald commented 6 years ago

thanks, using regexes is good idea!

raabf commented 6 years ago

You're welcome 😄