Skip to content

Commit

Permalink
Fix potential issues for the future
Browse files Browse the repository at this point in the history
  • Loading branch information
The1Penguin committed Nov 12, 2024
1 parent ea3a4a2 commit 1ee301f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Model/Linsen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ parse day =
[] -> fail "Failed to index into richtext"
(v:_) -> pure v)
>=> (.: "text")
>=> filterM (pure . not . isSpace)
>=> \s ->
let sameDay = pure day == parseTime swedishTimeLocale "%A %d-%m-%Y" s ||
pure day == parseTime swedishTimeLocale "%d-%m-%Y" s
Expand Down

0 comments on commit 1ee301f

Please sign in to comment.