forked from filipg/twilight-library
Fix date format
This commit is contained in:
parent
0d06e9dc3d
commit
43c730c60d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user