Fix date format

This commit is contained in:
Jakub Kolasiński 2021-04-10 11:19:22 +02:00
parent 0d06e9dc3d
commit 43c730c60d

View File

@ -27,7 +27,7 @@ replaceSeparatorWithSpace = map (\c -> if c=='_' then ' '; else if c=='-' then '
replaceUnderscoreWithDash = map (\c -> if c=='_' then '-'; else c)
getNr url =
case url =~~ "nr[-_][0-9][0-9]" :: Maybe String of
case url =~~ "nr[-_][0-9][0-9](_cz-[0-9])?" :: Maybe String of
Just nr -> replaceSeparatorWithSpace nr
otherwise -> error $ "unexpected url: " ++ url