shake: changelogs: don't get confused by an all-digit commit hash

Fixes spurious "can't list changes" warning.
This commit is contained in:
Simon Michael 2021-08-03 09:51:15 -10:00
parent abd63db3e7
commit d716aaa5a8

View File

@ -811,7 +811,7 @@ replaceBy :: RE -> (Match String -> RELocation -> Capture String -> Maybe String
replaceBy re f src = replaceAllCaptures TOP f $ src *=~ re
-- | Does this string look like a valid cabal package version ?
isVersion s = not (null s) && all (`elem` "0123456789.") s
isVersion s = not (null s) && all (`elem` "0123456789.") s && '.' `elem` s
-- | Does this string look like a hledger development version ?
-- Ie a version where the first two digits of the last part are the