Fix typo

Signed-off-by: Michal Čihař <michal@cihar.com>
Use regexp instead of many conditions

Signed-off-by: Michal Čihař <michal@cihar.com>