Missing date error fix
This commit is contained in:
parent
946f72833f
commit
cf6ea155f4
@ -31,7 +31,7 @@ toShadowItem (url, articleTitle) =
|
||||
getDate articleTitle =
|
||||
case articleTitle =~~ "(19[0-9][0-9]|20[0-9][0-9])" :: Maybe [[String]] of
|
||||
Just [[_, year]] -> year
|
||||
otherwise -> error $ "unexpected articleTitle: " ++ articleTitle
|
||||
otherwise -> "No date for " ++ articleTitle
|
||||
|
||||
|
||||
main = do
|
||||
|
Loading…
Reference in New Issue
Block a user