Skip to content

Commit

Permalink
fix: replaceQuestion at beginning of parens
Browse files Browse the repository at this point in the history
  • Loading branch information
isovector committed Feb 9, 2023
1 parent 9b31f5d commit 02020b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Cornelis/Goals.hs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ getGoalContents b ip = fromMaybe "" <$> getGoalContents_maybe b ip
replaceQuestion :: Text -> Text
replaceQuestion = T.unwords . fmap go . T.words
where
go "(?" = "({! !}"
go "?" = "{! !}"
go x =
case T.dropWhileEnd (== ')') x of
Expand Down

0 comments on commit 02020b0

Please sign in to comment.