Bugfix: dropunused did not drop keys with two spaces in their name.
This commit is contained in:
parent
9a67f9cb8d
commit
2bf3addf49
3 changed files with 7 additions and 2 deletions
|
@ -73,6 +73,6 @@ readUnusedLog prefix = do
|
|||
then M.fromList . map parse . lines <$> liftIO (readFile f)
|
||||
else return M.empty
|
||||
where
|
||||
parse line = (head ws, fromJust $ readKey $ unwords $ tail ws)
|
||||
parse line = (num, fromJust $ readKey $ tail rest)
|
||||
where
|
||||
ws = words line
|
||||
(num, rest) = break (== ' ') line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue